private Stage ToStage(ContentManager content) { var player = _playerFactory.Create(content, "Textures\\Player\\player", Player.Position, Player.Shape) as Player; var terrain = Terrain.Select(t => _terrainFactory.Create(content, t.Texture, t.Position, t.Shape)); return(new Stage(Size, player, terrain)); }
public void LoadTerrain() { // Load the terrain if (!IsInterior) { TerrainFactory.Create(coordinates); } }
private void FillWithGrass() { for (int x = 0; x < Width; x++) { for (int y = 0; y < Height; y++) { Tiles[x, y] = new Tile(x, y, _terrainFactory.Create(TerrainId.Grass), this); } } }
protected void ModifyTerrain(Tile tile) => tile.SetTerrain(_terrainFactory.Create(_terrain));
public void SetTerrain(int x, int y, TerrainId terrain) => _map.Tiles[x, y].SetTerrain(_terrainFactory.Create(terrain));
//[SerializeField] //private Color32[] colors; private void Start() { TerrainFactory.Create(coordinates); //colors = LandRecord.LandRecords[coordinate].NormalData.GetNormals().ToArray(); }