Modding:SaveGame Data Storage: Difference between revisions

From Vintage Story Wiki
Line 172: Line 172:
</syntaxhighlight>
</syntaxhighlight>


The <code>Remove</code> method returns false if nothing matching the argument passed to it was found to be removed, and true if it was. If the player was in the list, we serialize the updated list, and store the data to the <code>SaveGame</code>, letting the player know his request was successful.
The <code>Remove</code> method returns false if nothing matching the argument passed to it was found to be removed, and true if it was. If the player was in the list, we serialize the updated list, and store the data to the <code>SaveGame</code>, letting the player know their request was successful.


Finally, we handle <code>/lfg list</code>:
Finally, we handle <code>/lfg list</code>: