public TreeTile(GameTile tile, int textureIndex, float alphaChannel, GetTileTexture getTileTexture) { m_gameTile = tile; m_textureIndex = textureIndex; m_alphaChannel = alphaChannel; m_moveable = false; m_tileTextureDelegate = getTileTexture; }
public GameTileLayer(int width, int height, LayerType.LayerTypesEnum layerType) : base(width, height, layerType) { m_layerLayout = new GameTile[width, height]; //Set tile layer layout to be empty for (int x = 0; x < m_layoutWidth; x++) for (int y = 0; y < m_layoutHeight; y++) m_layerLayout[x, y] = new GameTile(EMPTYTILEINDEX, new Point(x * TileWidth, y * TileHeight)); }