TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ GetTopLeftAndStyles()

static Point Terraria.WorldGen.GetTopLeftAndStyles ( ref int x,
ref int y,
int w,
int h,
int frameXinc,
int frameYinc )
inlinestatic

Definition at line 45654 of file WorldGen.cs.

45655 {
45656 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
45657 Tile tileSafely = Framing.GetTileSafely(x, y);
45658 Point result = new Point(tileSafely.frameX / (w * frameXinc), tileSafely.frameY / (h * frameYinc));
45659 if (frameXinc != 0)
45660 {
45661 x -= tileSafely.frameX / frameXinc % w;
45662 }
45663 if (frameYinc != 0)
45664 {
45665 y -= tileSafely.frameY / frameYinc % h;
45666 }
45667 return result;
45668 }

References Terraria.Framing.GetTileSafely().

Referenced by Terraria.Player.TileInteractionsMouseOver().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: