Table of Contents

Interface ISelectableSkin

Namespace
CustomKnight
Assembly
CustomKnight.dll

The Interface that a Class must implement to be treated as a skin.

public interface ISelectableSkin

Methods

Exists(string)

Exists

bool Exists(string FileName)

Parameters

FileName string

A string that identifies the file

Returns

bool

A bool representing if the file exists in this skin.

GetCinematicUrl(string)

GetCinematicUrl returns the Url for the given Cinematic

string GetCinematicUrl(string CinematicName)

Parameters

CinematicName string

A string that identifies the Cinematic

Returns

string

A string, the Url for the given Cinematic (a file:// url for local files).

GetFile(string)

GetFile reads an arbitrary file from the skin

byte[] GetFile(string FileName)

Parameters

FileName string

A string that identifies the file

Returns

byte[]

A byte[], the contents of that filename.

GetId()

GetId

string GetId()

Returns

string

The unique id of the skin as a string

GetName()

GetName

string GetName()

Returns

string

The Name to be displayed in the menu as a string

GetTexture(string)

GetTexture

Texture2D GetTexture(string FileName)

Parameters

FileName string

A string that identifies the texture file

Returns

Texture2D

A Texture2D, the texture for that filename.

HasCinematic(string)

HasCinematic returns if a given ciematic exists

bool HasCinematic(string CinematicName)

Parameters

CinematicName string

A string that identifies the Cinematic

Returns

bool

A bool, representing if a given ciematic exists

getSwapperPath()

getSwapperPath

string getSwapperPath()

Returns

string

A string representing the absolute path to the directory containing the swap folder.

hasSwapper()

hasSwapper

bool hasSwapper()

Returns

bool

A bool representing if the skin has support for swapper files.

shouldCache()

shouldCache

bool shouldCache()

Returns

bool

A bool representing if the texture can be cached in memory or not.