public Buckets(GameGrid grid, List<GameAction> actions, List<Civilian> civilians, List<Dropoff> drops, List<Water> naturals) { this.grid = grid; this.buckets = new ProcessingBucket[grid.CellCountX,grid.CellCountY]; for (int i = 0; i < buckets.GetLength(0); i++) { for (int j = 0; j < buckets.GetLength(1); j++) { this.buckets[i, j] = new ProcessingBucket(); } } this.actions = actions; this.civilians = civilians; this.drops = drops; }
private void LoadContentReal(ContentManager content) { Texture2D pixelTexture = content.Load<Texture2D>("graphics//pixel"); this.grid = new GameGrid(pixelTexture, 9, 9, 32, 31, 18, 18, 1, Color.Black); foreach (Actions.GameAction action in actions) { action.LoadContent(content); } this.civilians = new List<Civilian>(); defaultFont = content.Load<SpriteFont>("Fonts//gamefont"); actionFont = content.Load<SpriteFont>("Fonts//actionCountFond"); this.buckets = new Buckets(this.grid, new List<GameAction>(), new List<Civilian>(), new List<Dropoff>(), new List<Water>()); PopulateCivilians(this.civilians, pixelTexture, content); }