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); }
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); }