public void Attach(ErrandManager <T> errands, EntityComponentManager entities, T game) { Errands = errands; Entities = entities; Game = game; OnCreate(); }
public SystemManager(EntityComponentManager ecs, ErrandManager <T> errands, T game) { _ecs = ecs; _errands = errands; _entitySystems = new List <EntitySystem <T> >(); _gameSystems = new List <GameSystem <T> >(); _game = game; }
public void Attach(T game, EntityComponentManager ecm, ErrandManager <T> errands) { Game = game; Entities = ecm; Errands = errands; }
private void ResetECS() { Entities = new EntityComponentManager(); Errands = new ErrandManager <T>(Entities, Game); Systems = new SystemManager <T>(Entities, Errands, Game); }