1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-07-09 01:57:09 +02:00

Implement a new event to receive notifications when a checkpoint world has changed.

This commit is contained in:
Sandu Liviu Catalin
2016-08-18 15:54:26 +03:00
parent fee9b66750
commit f38aa16b5f
6 changed files with 48 additions and 4 deletions
+14 -1
View File
@@ -7,6 +7,14 @@
// ------------------------------------------------------------------------------------------------
namespace SqMod {
/* ------------------------------------------------------------------------------------------------
* Circular locks employed by the checkpoint manager.
*/
enum CheckpointCircularLocks
{
CHECKPOINTCL_EMIT_CHECKPOINT_WORLD = (1 << 0)
};
/* ------------------------------------------------------------------------------------------------
* Manages a single checkpoint entity.
*/
@@ -39,6 +47,11 @@ private:
*/
Object m_Data;
/* --------------------------------------------------------------------------------------------
* Prevent events from triggering themselves.
*/
Uint32 m_CircularLocks;
/* --------------------------------------------------------------------------------------------
* Base constructor.
*/
@@ -197,7 +210,7 @@ public:
/* --------------------------------------------------------------------------------------------
* Modify the world in which the managed checkpoint entity exists.
*/
void SetWorld(Int32 world) const;
void SetWorld(Int32 world);
/* --------------------------------------------------------------------------------------------
* Retrieve the color of the managed checkpoint entity.