C# Class AlbLib.Texts.TextCore

Core texts class.
Afficher le fichier Open project: IllidanS4/AlbLib

Méthodes publiques

Méthode 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

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

Method Details

GetItemName() public static méthode

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

GetItemName() public static méthode

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. ///
Résultat string

TrimNull() public static méthode

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

TrimNull() public static méthode

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