public ClientDestructibleObjectUpdateSystem(Contexts contexts) { _destructObjListener = new ClientDestructibleObjectListener(contexts); _glassyObjListener = new ClientGlassyObjectListener(contexts); _context = contexts.mapObject; _destructibleObjects = _context.GetGroup(MapObjectMatcher.AllOf(MapObjectMatcher.EntityKey, MapObjectMatcher.TriggerObjectId, MapObjectMatcher.DestructibleData, MapObjectMatcher.RawGameObject)); _glassyObjects = _context.GetGroup(MapObjectMatcher.AllOf(MapObjectMatcher.EntityKey, MapObjectMatcher.TriggerObjectId, MapObjectMatcher.GlassyData, MapObjectMatcher.RawGameObject)); _eventObjects = _context.GetGroup(MapObjectMatcher.AllOf(MapObjectMatcher.EntityKey, MapObjectMatcher.TriggerObjectId, MapObjectMatcher.TriggerObjectEvent, MapObjectMatcher.TriggerObjectEventFlag, MapObjectMatcher.RawGameObject)); _sessionObjects = contexts.session.clientSessionObjects; }
public ServerDestructibleObjectUpdateSystem(Contexts contexts) { _destructObjListener = new ServerDestructibleObjectListener(contexts); _glassyObjListener = new ServerGlassyObjectListener(contexts); _context = contexts.mapObject; _eventObjects = _context.GetGroup(MapObjectMatcher.AllOf(MapObjectMatcher.EntityKey, MapObjectMatcher.TriggerObjectId, MapObjectMatcher.TriggerObjectEvent, MapObjectMatcher.TriggerObjectEventFlag, MapObjectMatcher.RawGameObject)); _currentTime = contexts.session.currentTimeObject; }