C# Class AlbLib.Texts.TextCore

Core texts class.
Datei anzeigen Open project: IllidanS4/AlbLib

Public Methods

Method Description
GetItemName ( short type ) : string

Gets localized item name for type using default language.

GetItemName ( short type, System.Language language ) : string

Gets localized item name for type and specified language.

TrimNull ( char chars ) : string

Creates a string from character array up to first null character.

TrimNull ( string str ) : string

Trims a string to first null character.

Private Methods

Method Description
LoadItemName ( int index, RefEq encoding ) : LanguageTerm
ReadString ( BinaryReader reader ) : string
TextCore ( ) : System

Method Details

GetItemName() public static method

Gets localized item name for type using default language.
public static GetItemName ( short type ) : string
type short /// Item type. ///
return string

GetItemName() public static method

Gets localized item name for type and specified language.
public static GetItemName ( short type, System.Language language ) : string
type short /// Item type. ///
language System.Language /// Language of the name. ///
return string

TrimNull() public static method

Creates a string from character array up to first null character.
public static TrimNull ( char chars ) : string
chars char /// Source character array. ///
return string

TrimNull() public static method

Trims a string to first null character.
public static TrimNull ( string str ) : string
str string /// String to trim. ///
return string