#ifndef SERVEROBJECT_HEADER
#define SERVEROBJECT_HEADER
+#include <unordered_set>
#include "irrlichttypes_bloated.h"
#include "activeobject.h"
#include "inventorymanager.h"
{}
virtual void removeAttachmentChild(int child_id)
{}
- virtual const UNORDERED_SET<int> &getAttachmentChildIds()
- { static const UNORDERED_SET<int> rv; return rv; }
+ virtual const std::unordered_set<int> &getAttachmentChildIds()
+ { static const std::unordered_set<int> rv; return rv; }
virtual ObjectProperties* accessObjectProperties()
{ return NULL; }
virtual void notifyObjectPropertiesModified()
deleted until this is 0 to keep the id preserved for the right
object.
*/
- u16 m_known_by_count;
+ u16 m_known_by_count = 0;
/*
- Whether this object is to be removed when nobody knows about
to be deleted.
- This can be set to true by anything else too.
*/
- bool m_removed;
+ bool m_removed = false;
/*
This is set to true when an object should be removed from the active
m_known_by_count is true, object is deleted from the active object
list.
*/
- bool m_pending_deactivation;
+ bool m_pending_deactivation = false;
/*
Whether the object's static data has been stored to a block
*/
- bool m_static_exists;
+ bool m_static_exists = false;
/*
The block from which the object was loaded from, and in which
a copy of the static data resides.
*/
- v3s16 m_static_block;
+ v3s16 m_static_block = v3s16(1337,1337,1337);
/*
Queue of messages to be sent to the client
ServerEnvironment *m_env;
v3f m_base_position;
- UNORDERED_SET<u32> m_attached_particle_spawners;
+ std::unordered_set<u32> m_attached_particle_spawners;
private:
// Used for creating objects based on type