M&B: Bannerlord 1.1.0
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

abstract 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

abstract 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()

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

◆ 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

abstract Texture TaleWorlds.TwoDimension.Sprite.Texture
get

◆ Name

string TaleWorlds.TwoDimension.Sprite.Name
get

◆ Width

int TaleWorlds.TwoDimension.Sprite.Width
get

◆ Height

int TaleWorlds.TwoDimension.Sprite.Height
get