Ejemplo n.º 1
0
 public void Attach(ErrandManager <T> errands, EntityComponentManager entities, T game)
 {
     Errands  = errands;
     Entities = entities;
     Game     = game;
     OnCreate();
 }
Ejemplo 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;
 }
Ejemplo n.º 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>();
        }
Ejemplo n.º 4
0
 public Entity(int id, EntityComponentManager ecs)
 {
     Id   = id;
     _ecs = ecs;
 }
Ejemplo n.º 5
0
 public void Attach(T game, EntityComponentManager ecm, ErrandManager <T> errands)
 {
     Game     = game;
     Entities = ecm;
     Errands  = errands;
 }
Ejemplo n.º 6
0
 private void ResetECS()
 {
     Entities = new EntityComponentManager();
     Errands  = new ErrandManager <T>(Entities, Game);
     Systems  = new SystemManager <T>(Entities, Errands, Game);
 }
Ejemplo n.º 7
0
 public EntitySet(BitSet signature, EntityComponentManager ecm)
 {
     Entities   = new List <Entity>();
     _signature = signature;
     _ecm       = ecm;
 }
Ejemplo n.º 8
0
 public EntityFactory(EntityComponentManager ecs)
 {
     _ecs          = ecs;
     _nextEntityId = 0;
 }