コード例 #1
0
ファイル: TileDrawInfo.cs プロジェクト: flatverse/flatsim0
 public TileDrawInfo(int coordNS, int coordWE, float baseHeight, float adjustedHeight, Direction facing, TilePart tilePart, TileSlopeInfo slopeInfo, Vector2 pos, Vector2 scale, float depth, int depthDigits)
 {
     this.coordNS = coordNS;
     this.coordWE = coordWE;
     this.baseHeight = baseHeight;
     this.adjustedHeight = adjustedHeight;
     this.facing = facing;
     this.tilePart = tilePart;
     this.slopeInfo = slopeInfo;
     this.pos = pos;
     this.scale = scale;
     this.depth = depth;
     this.depthDigits = depthDigits;
 }
コード例 #2
0
ファイル: TilePerspective.cs プロジェクト: flatverse/flatsim0
        public virtual TileDrawInfo getTileDrawInfo(int coordNS, int coordWE, float height, TilePart part, TileSlopeInfo slopeInfo)
        {
            Direction facing = getDirectionFacing();
            Vector2 pxPos = getTilePixelPosition(coordNS, coordWE, height, part);
            Vector2 scale = getScale();
            float depth = getTileDepth(depthShift, coordNS, coordWE, part);
            int digitCount = getDepthDigitsNeeded(depthShift);
            TileDrawInfo tdi = new TileDrawInfo(coordNS, coordWE, height, height, facing, part, slopeInfo, pxPos, scale, depth, digitCount);

            adjusters.adjust(tdi);

            return tdi;
        }