C# Класс StringController, UnderworldExporter

Class for holding game strings and returning formatted strings and text
Наследование: UWEBase
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
instance StringController,

Открытые методы

Метод Описание
GetFormattedObjectNameUW ( ObjectInteraction, objInt ) : string

Gets the formatted object name for the specified object. Takes into account quantity.

GetFormattedObjectNameUW ( ObjectInteraction, objInt, int Quantity ) : string

Gets the formatted object name for the passed object and a specified quantity.

GetFormattedObjectNameUW ( ObjectInteraction, objInt, string QualityString ) : string

Gets the formatted object name with a description of its qualty. (EG smell fish.)

GetObjectNounUW ( ObjectInteraction, objInt ) : string

Gets the object noun for a passed object

GetObjectNounUW ( int item_id ) : string

Gets the object noun for the specified item id.

GetSimpleObjectNameUW ( ObjectInteraction, objInt ) : string

Gets the simple object name for the pass object.

GetSimpleObjectNameUW ( int item_id ) : string

Gets the simple object name without quantity

GetString ( int BlockNo, int StringNo ) : string

Gets the string at the specified numbers

GetTextureName ( int index ) : string

Gets the name of the texture of the wall/floor looked at.

InitStringController ( string StringFilePath ) : bool

Inits the string controller.

TextureDescription ( int index ) : string

Gets the description for the texture looked at.

Приватные методы

Метод Описание
Awake ( ) : void
Load ( string fileName ) : bool

Load the strings in from an external txt file. Parses the values into the hashtable.

Описание методов

GetFormattedObjectNameUW() публичный Метод

Gets the formatted object name for the specified object. Takes into account quantity.
public GetFormattedObjectNameUW ( ObjectInteraction, objInt ) : string
objInt ObjectInteraction, Object int.
Результат string

GetFormattedObjectNameUW() публичный Метод

Gets the formatted object name for the passed object and a specified quantity.
public GetFormattedObjectNameUW ( ObjectInteraction, objInt, int Quantity ) : string
objInt ObjectInteraction, Object int.
Quantity int Quantity that I want to display
Результат string

GetFormattedObjectNameUW() публичный Метод

Gets the formatted object name with a description of its qualty. (EG smell fish.)
public GetFormattedObjectNameUW ( ObjectInteraction, objInt, string QualityString ) : string
objInt ObjectInteraction, Object int.
QualityString string Quality string.
Результат string

GetObjectNounUW() публичный Метод

Gets the object noun for a passed object
public GetObjectNounUW ( ObjectInteraction, objInt ) : string
objInt ObjectInteraction, Object int.
Результат string

GetObjectNounUW() публичный Метод

Gets the object noun for the specified item id.
public GetObjectNounUW ( int item_id ) : string
item_id int Item identifier.
Результат string

GetSimpleObjectNameUW() публичный Метод

Gets the simple object name for the pass object.
public GetSimpleObjectNameUW ( ObjectInteraction, objInt ) : string
objInt ObjectInteraction, Object int.
Результат string

GetSimpleObjectNameUW() публичный Метод

Gets the simple object name without quantity
public GetSimpleObjectNameUW ( int item_id ) : string
item_id int Item identifier.
Результат string

GetString() публичный Метод

Gets the string at the specified numbers
public GetString ( int BlockNo, int StringNo ) : string
BlockNo int Block no.
StringNo int String no.
Результат string

GetTextureName() публичный Метод

Gets the name of the texture of the wall/floor looked at.
public GetTextureName ( int index ) : string
index int Index.
Результат string

InitStringController() публичный Метод

Inits the string controller.
public InitStringController ( string StringFilePath ) : bool
StringFilePath string String file path.
Результат bool

TextureDescription() публичный Метод

Gets the description for the texture looked at.
public TextureDescription ( int index ) : string
index int Index.
Результат string

Описание свойств

instance публичное статическое свойство

The instance of this class
public static StringController, instance
Результат StringController,