Esempio n. 1
0
 public void Attach(ErrandManager <T> errands, EntityComponentManager entities, T game)
 {
     Errands  = errands;
     Entities = entities;
     Game     = game;
     OnCreate();
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public void Attach(T game, EntityComponentManager ecm, ErrandManager <T> errands)
 {
     Game     = game;
     Entities = ecm;
     Errands  = errands;
 }
Esempio n. 4
0
 private void ResetECS()
 {
     Entities = new EntityComponentManager();
     Errands  = new ErrandManager <T>(Entities, Game);
     Systems  = new SystemManager <T>(Entities, Errands, Game);
 }