コード例 #1
0
        public Tile GetTile(TrickTileData t)
        {
            SetMinimapTile(Color.Green);

            var trickTileInitializer = new WallIlusionInitializer
            {
                Imaginary        = t.IsImaginary,
                Open             = t.IsOpen,
                RandomDecoration = t.RandomDecoration,
            };

            var res = new WallIlusion(trickTileInitializer);

            SetupWallIllusionSidesAsync(trickTileInitializer, t.RandomDecoration, res);
            res.Renderer = builder.Factories.RenderersSource.GetWallIllusionTileRenderer(res, builder.WallTexture);

            initializer = trickTileInitializer;
            return(res);
        }
コード例 #2
0
 public Tile GetTile(TrickTileData t)
 {
     SetMinimapTile(Color.Green);
     return(new WallIlusion(tilePosition, t.IsImaginary, t.IsOpen));
 }