private void SetupFloorItems(Tile tile) { FloorActuatorCreator.CreateSetupActuators(tile); var itemCreator = new LegacyItemCreator(this); var tileData = CurrentMap[tile.GridPosition.X, tile.GridPosition.Y]; tileData.GrabableItems.ForEach(x => tile.SubItems.Add(itemCreator.CreateItem(x, tile))); //TODO creatures var creatureCreator = new CreatureCreator(this); foreach (var creatre in tileData.Creatures.Where(i => !i.Processed)) { creatures.AddRange(creatureCreator.AddCreature(creatre, tile)); } }
private void SetupFloorItems(Tile tile) { FloorActuatorCreator.CreateSetupActuators(tile); var itemCreator = new LegacyItemCreator(this); var tileData = CurrentMap[tile.GridPosition.X, tile.GridPosition.Y]; tileData.GrabableItems.ForEach(x => tile.SubItems.Add(itemCreator.CreateItem(x, tile))); //TODO creatures var creatureCreator = new CreatureCreator(this); foreach (var creatre in tileData.Creatures.Where(i => !i.Processed)) creatures.AddRange(creatureCreator.AddCreature(creatre, tile)); }