Example #1
0
 public void Attach(ErrandManager <T> errands, EntityComponentManager entities, T game)
 {
     Errands  = errands;
     Entities = entities;
     Game     = game;
     OnCreate();
 }
Example #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;
 }
Example #3
0
        public ErrandManager(EntityComponentManager entities, T game)
        {
            _entities = entities;
            Game      = game;
            _errands  = new Dictionary <Type, List <Errand <T> > >();

            _removeQueue = new List <ErrandStore>();
            _addQueue    = new List <ErrandStore>();
        }
Example #4
0
 public Entity(int id, EntityComponentManager ecs)
 {
     Id   = id;
     _ecs = ecs;
 }
Example #5
0
 public void Attach(T game, EntityComponentManager ecm, ErrandManager <T> errands)
 {
     Game     = game;
     Entities = ecm;
     Errands  = errands;
 }
Example #6
0
 private void ResetECS()
 {
     Entities = new EntityComponentManager();
     Errands  = new ErrandManager <T>(Entities, Game);
     Systems  = new SystemManager <T>(Entities, Errands, Game);
 }
Example #7
0
 public EntitySet(BitSet signature, EntityComponentManager ecm)
 {
     Entities   = new List <Entity>();
     _signature = signature;
     _ecm       = ecm;
 }
Example #8
0
 public EntityFactory(EntityComponentManager ecs)
 {
     _ecs          = ecs;
     _nextEntityId = 0;
 }