tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.DataStructures.SpriteFrame Struct Reference

Public Member Functions

 SpriteFrame (byte columns, byte rows)
 
 SpriteFrame (byte columns, byte rows, byte currentColumn, byte currentRow)
 
Rectangle GetSourceRectangle (Texture2D texture)
 
SpriteFrame With (byte columnToUse, byte rowToUse)
 

Public Attributes

readonly byte ColumnCount
 
int PaddingX
 
int PaddingY
 
readonly byte RowCount
 

Properties

byte CurrentColumn [get, set]
 
byte CurrentRow [get, set]