|
| SpriteSheet (ContentXElement element, string path="", string file="") |
|
| SpriteSheet (string filePath, int columnCount, int rowCount, Vector2 origin, Rectangle? sourceRect=null) |
|
override string | ToString () |
|
| Sprite (ContentXElement element, string path="", string file="", bool lazyLoad=false) |
|
| Sprite (string newFile, Vector2 newOrigin) |
|
| Sprite (string newFile, Rectangle? sourceRectangle, Vector2? origin=null, float rotation=0) |
|
void | Remove () |
|
void | ReloadXML () |
| Works only if there is a name attribute defined for the sprite. For items and structures, the entity id or name is used if the sprite's name attribute is not defined. More...
|
|
bool | ParseTexturePath (string path="", string file="") |
|
|
static Identifier | GetIdentifier (XElement sourceElement) |
| Creates a supposedly unique identifier from the parent element. If the parent element is not found, uses the sprite element. TODO: If there are multiple elements with exactly the same data, the ids will fail. -> Is there a better way to identify the sprites? ALSO TODO: delete :) More...
|
|
Vector2 | size = Vector2.One |
|
float | rotation |
|
Vector2 | offset |
|
Vector2 | origin |
|
float | depth |
|
Definition at line 7 of file SpriteSheet.cs.
◆ SpriteSheet() [1/2]
Barotrauma.SpriteSheet.SpriteSheet |
( |
ContentXElement |
element, |
|
|
string |
path = "" , |
|
|
string |
file = "" |
|
) |
| |
◆ SpriteSheet() [2/2]
Barotrauma.SpriteSheet.SpriteSheet |
( |
string |
filePath, |
|
|
int |
columnCount, |
|
|
int |
rowCount, |
|
|
Vector2 |
origin, |
|
|
Rectangle? |
sourceRect = null |
|
) |
| |
◆ FrameCount
int Barotrauma.SpriteSheet.FrameCount |
|
get |
◆ FrameSize
Point Barotrauma.SpriteSheet.FrameSize |
|
get |