Table of Contents

Class Sprite

Namespace
TaleWorlds.TwoDimension
Assembly
TaleWorlds.TwoDimension.dll
public abstract class Sprite
Inheritance
Sprite
Derived
Inherited Members

Constructors

Sprite(string, int, int)

protected Sprite(string name, int width, int height)

Parameters

name string
width int
height int

Fields

CachedDrawData

protected SpriteDrawData CachedDrawData

Field Value

SpriteDrawData

CachedDrawObject

protected DrawObject2D CachedDrawObject

Field Value

DrawObject2D

Properties

Height

public int Height { get; }

Property Value

int

Name

public string Name { get; }

Property Value

string

Texture

public abstract Texture Texture { get; }

Property Value

Texture

Width

public int Width { get; }

Property Value

int

Methods

GetArrays(SpriteDrawData)

protected abstract DrawObject2D GetArrays(SpriteDrawData spriteDrawData)

Parameters

spriteDrawData SpriteDrawData

Returns

DrawObject2D

GetScaleToUse(float, float, float)

public abstract float GetScaleToUse(float width, float height, float scale)

Parameters

width float
height float
scale float

Returns

float

ToString()

public override string ToString()

Returns

string

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).