//------------------------------------------------------------------------------------- Base::Base(ENTITY_ID id, const ScriptDefModule* pScriptModule, PyTypeObject* pyType, bool isInitialised): ScriptObject(pyType, isInitialised), ENTITY_CONSTRUCTION(Base), clientMailbox_(NULL), cellMailbox_(NULL), cellDataDict_(NULL), hasDB_(false), DBID_(0), isGetingCellData_(false), isArchiveing_(false), shouldAutoArchive_(1), shouldAutoBackup_(1), creatingCell_(false), createdSpace_(false), inRestore_(false), pBufferedSendToCellappMessages_(NULL), pBufferedSendToClientMessages_(NULL), isDirty_(true), dbInterfaceIndex_(0) { script::PyGC::incTracing("Base"); ENTITY_INIT_PROPERTYS(Base); // 创建并初始化cellData createCellData(); }
//------------------------------------------------------------------------------------- Entity::Entity(ENTITY_ID id, const ScriptDefModule* scriptModule): ScriptObject(getScriptType(), true), ENTITY_CONSTRUCTION(Entity), cellMailbox_(NULL), baseMailbox_(NULL), pChannel_(NULL) { ENTITY_INIT_PROPERTYS(Entity); }
//------------------------------------------------------------------------------------- Entity::Entity(ENTITY_ID id, const ScriptDefModule* scriptModule): ScriptObject(getScriptType(), true), ENTITY_CONSTRUCTION(Entity), clientMailbox_(NULL), baseMailbox_(NULL), isReal_(true), topSpeed_(-0.1f), topSpeedY_(-0.1f), isWitnessed_(false), pWitness_(NULL), allClients_(new AllClients(scriptModule, id, true)), otherClients_(new AllClients(scriptModule, id, false)) { ENTITY_INIT_PROPERTYS(Entity); }
//------------------------------------------------------------------------------------- Base::Base(ENTITY_ID id, const ScriptDefModule* scriptModule, PyTypeObject* pyType, bool isInitialised): ScriptObject(pyType, isInitialised), ENTITY_CONSTRUCTION(Base), clientMailbox_(NULL), cellMailbox_(NULL), cellDataDict_(NULL), hasDB_(false), isGetingCellData_(false), isArchiveing_(false), creatingCell_(false), createdSpace_(false) { ENTITY_INIT_PROPERTYS(Base); // 创建并初始化cellData createCellData(); }