public ExplosionSystem(EntityGrid entityGrid) : base( SystemOrders.Update.Explosion, new int[] { ComponentTypeIds.Explosion, ComponentTypeIds.Placement } ) { this.entityGrid = entityGrid; }
public PowerUpSystem(EntityGrid grid) : base(SystemOrders.Update.PowerUp, new int[] { ComponentTypeIds.PowerUp, ComponentTypeIds.Placement }, null ) { this.entityGrid = grid; }
public GridSystem() : base(SystemOrders.Update.Grid, new int[] { ComponentTypeIds.Placement }, new uint[] { Messages.QueryComponentAtGrid } ) { entityGrid = new EntityGrid(); }
public GameStateSystem(Game1 game, EntityGrid entityGrid, SpriteBatch spriteBatch, SpriteFont font) : base(SystemOrders.Update.GameState, new int[] { ComponentTypeIds.GameState }, new uint[] { Messages.LoadLevel } ) { this.spriteBatch = spriteBatch; this.entityGrid = entityGrid; DrawOrder = SystemOrders.Draw.GameState; this.font = font; this.game = game; }