Esempio n. 1
0
 public WorldObject(uint guid, ObjectsMgr manager)
 {
     _manager    = manager;
     _lock       = new object();
     _server     = manager.Server;
     _guid       = guid | (uint)(TypeID << 16);
     _components = new ObjectComponent[Constants.ArrayCapacity];
     _manager.Add(this);
 }
Esempio n. 2
0
 public WorldObject(uint guid, ObjectsMgr manager)
 {
     _manager    = manager;
     _lock       = new object();
     _server     = manager.Server;
     _guid       = guid | (uint)(TypeID << 16);
     _updatable  = ArrayEx.Empty <IUpdatable>();
     _components = ArrayEx.Empty <ObjectComponent>();
     _manager.Add(this);
 }