diff options
Diffstat (limited to 'src/serverenvironment.h')
-rw-r--r-- | src/serverenvironment.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/serverenvironment.h b/src/serverenvironment.h index d51658330..ee5e8d857 100644 --- a/src/serverenvironment.h +++ b/src/serverenvironment.h @@ -257,6 +257,19 @@ public: */ u16 addActiveObject(ServerActiveObject *object); + /** + * Verify if id is a free active object id + * @param id + * @return true if slot is free + */ + bool isFreeServerActiveObjectId(u16 id) const; + + /** + * Retrieve the next free activeobject ID + * @return free activeobject ID or zero if not free ID found + */ + u16 getFreeServerActiveObjectId(); + /* Add an active object as a static object to the corresponding MapBlock. |