M&B: Bannerlord 1.2.9
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.TwoDimension.Sprite Class Referenceabstract

Inherited by TaleWorlds.TwoDimension.SpriteGeneric, and TaleWorlds.TwoDimension.SpriteNineRegion.

Public Member Functions

float GetScaleToUse (float width, float height, float scale)
 
override string ToString ()
 

Protected Member Functions

 Sprite (string name, int width, int height)
 

Protected Attributes

DrawObject2D CachedDrawObject
 
SpriteDrawData CachedDrawData
 

Properties

Texture Texture [get]
 
string Name [get]
 
int Width [get]
 
int Height [get]
 

Constructor & Destructor Documentation

◆ Sprite()

TaleWorlds.TwoDimension.Sprite.Sprite ( string name,
int width,
int height )
protected

Member Function Documentation

◆ GetScaleToUse()

float TaleWorlds.TwoDimension.Sprite.GetScaleToUse ( float width,
float height,
float scale )
abstract

◆ ToString()

override string TaleWorlds.TwoDimension.Sprite.ToString ( )

Member Data Documentation

◆ CachedDrawObject

DrawObject2D TaleWorlds.TwoDimension.Sprite.CachedDrawObject
protected

◆ CachedDrawData

SpriteDrawData TaleWorlds.TwoDimension.Sprite.CachedDrawData
protected

Property Documentation

◆ Texture

Texture TaleWorlds.TwoDimension.Sprite.Texture
getabstract

◆ Name

string TaleWorlds.TwoDimension.Sprite.Name
get

◆ Width

int TaleWorlds.TwoDimension.Sprite.Width
get

◆ Height

int TaleWorlds.TwoDimension.Sprite.Height
get