示例#1
0
        /// <summary>
        /// Populates <paramref name="result"/> with the location data from the given <see cref="TileEntry"/> and <see cref="ShallowTileConfig"/> (instead of by trying to reference the original implementation)
        /// </summary>
        /// <param name="entry"></param>
        /// <param name="shallowTile"></param>
        /// <param name="result"></param>
        [Obsolete] public static void GetTransformFromShallow(this TileEntry entry, ShallowTileConfig shallowTile, out Transform3D result)
        {
            result = new Transform3D();
            int x = entry.getLocation().x;
            int y = entry.getLocation().y;
            int w = entry.GetWidth(shallowTile);
            int h = entry.GetHeight(shallowTile);

            TudeySceneMetrics.getTileTransform(w, h, x, y, entry.elevation, entry.rotation, result);
        }
示例#2
0
 /// <summary>
 /// Gets the height of this tile, but factors in the rotation of the tile too.
 /// </summary>
 /// <returns></returns>
 [Obsolete] public static int GetHeight(this TileEntry entry, ShallowTileConfig shallowTile) => TudeySceneMetrics.getTileHeight(shallowTile.Width, shallowTile.Height, entry.rotation);