Table of Contents

Class CustomKnightTexture

Namespace
CustomKnight
Assembly
CustomKnight.dll

The Class that represents the state of a Skinable's texture.

public class CustomKnightTexture
Inheritance
CustomKnightTexture
Inherited Members

Constructors

CustomKnightTexture(string, bool, Texture2D, Texture2D)

ctor

public CustomKnightTexture(string fileName, bool missing, Texture2D defaultTex, Texture2D tex)

Parameters

fileName string
missing bool
defaultTex Texture2D
tex Texture2D

Fields

defaultSprite

defaultSprite of the texture pulled from game

public Sprite defaultSprite

Field Value

Sprite

defaultTex

default texture of the CKT pulled from the game

public Texture2D defaultTex

Field Value

Texture2D

fileName

filename of the texture

public string fileName

Field Value

string

missing

is the texture missing

public bool missing

Field Value

bool

tex

the loaded texture

public Texture2D tex

Field Value

Texture2D

Properties

IsSprite

is a sprite or a texture

public bool IsSprite { get; }

Property Value

bool

currentTexture

Gets the tex or defaultTex depending on availablilty

public Texture2D currentTexture { get; set; }

Property Value

Texture2D