Modding:SaveGame ModData: Difference between revisions

From Vintage Story Wiki
m (gameversion)
Line 54: Line 54:
When the Server side starts, we add two event delegates that will retrieve our list from the <code>SaveGame</code> when the we game loads, and that will save the list when the game saves. We also register a command that players will use to access our list of those looking for group. This will be <code>/lfg</code> with the arguments list, join or leave.
When the Server side starts, we add two event delegates that will retrieve our list from the <code>SaveGame</code> when the we game loads, and that will save the list when the game saves. We also register a command that players will use to access our list of those looking for group. This will be <code>/lfg</code> with the arguments list, join or leave.


Let us now create the event delegates!
Let us now define the event delegates!


== Retrieving and Storing the List ==
== Retrieving and Storing the List ==