Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public void LoadTerrain()
 {
     // Load the terrain
     if (!IsInterior)
     {
         TerrainFactory.Create(coordinates);
     }
 }
Ejemplo n.º 3
0
 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));
Ejemplo n.º 5
0
 public void SetTerrain(int x, int y, TerrainId terrain) => _map.Tiles[x, y].SetTerrain(_terrainFactory.Create(terrain));
Ejemplo n.º 6
0
    //[SerializeField]
    //private Color32[] colors;

    private void Start()
    {
        TerrainFactory.Create(coordinates);

        //colors = LandRecord.LandRecords[coordinate].NormalData.GetNormals().ToArray();
    }