Пример #1
0
 public void Attach(ErrandManager <T> errands, EntityComponentManager entities, T game)
 {
     Errands  = errands;
     Entities = entities;
     Game     = game;
     OnCreate();
 }
Пример #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;
 }
Пример #3
0
 public void Attach(T game, EntityComponentManager ecm, ErrandManager <T> errands)
 {
     Game     = game;
     Entities = ecm;
     Errands  = errands;
 }
Пример #4
0
 private void ResetECS()
 {
     Entities = new EntityComponentManager();
     Errands  = new ErrandManager <T>(Entities, Game);
     Systems  = new SystemManager <T>(Entities, Errands, Game);
 }