|
|
|
@ -6,6 +6,8 @@
|
|
|
|
|
#define WORLDSTATEAPI \
|
|
|
|
|
{"ReadLastWorldstate", WorldstateFunctions::ReadLastWorldstate},\
|
|
|
|
|
\
|
|
|
|
|
{"CopyLastWorldstateToStore", WorldstateFunctions::CopyLastWorldstateToStore},\
|
|
|
|
|
\
|
|
|
|
|
{"ClearMapChanges", WorldstateFunctions::ClearMapChanges},\
|
|
|
|
|
\
|
|
|
|
|
{"GetMapChangesSize", WorldstateFunctions::GetMapChangesSize},\
|
|
|
|
@ -43,6 +45,15 @@ public:
|
|
|
|
|
*/
|
|
|
|
|
static void ReadLastWorldstate() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Take the contents of the read-only worldstate last received by the
|
|
|
|
|
* server from a player and move its contents to the stored worldstate
|
|
|
|
|
* that can be sent by the server.
|
|
|
|
|
*
|
|
|
|
|
* \return void
|
|
|
|
|
*/
|
|
|
|
|
static void CopyLastWorldstateToStore() noexcept;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* \brief Clear the map changes for the write-only worldstate.
|
|
|
|
|
*
|
|
|
|
|