C# Class StringController, UnderworldExporter

Class for holding game strings and returning formatted strings and text
Inheritance: UWEBase
Datei anzeigen Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
instance StringController,

Public Methods

Method Description
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.

Private Methods

Method Description
Awake ( ) : void
Load ( string fileName ) : bool

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

Method Details

GetFormattedObjectNameUW() public method

Gets the formatted object name for the specified object. Takes into account quantity.
public GetFormattedObjectNameUW ( ObjectInteraction, objInt ) : string
objInt ObjectInteraction, Object int.
return string

GetFormattedObjectNameUW() public method

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
return string

GetFormattedObjectNameUW() public method

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.
return string

GetObjectNounUW() public method

Gets the object noun for a passed object
public GetObjectNounUW ( ObjectInteraction, objInt ) : string
objInt ObjectInteraction, Object int.
return string

GetObjectNounUW() public method

Gets the object noun for the specified item id.
public GetObjectNounUW ( int item_id ) : string
item_id int Item identifier.
return string

GetSimpleObjectNameUW() public method

Gets the simple object name for the pass object.
public GetSimpleObjectNameUW ( ObjectInteraction, objInt ) : string
objInt ObjectInteraction, Object int.
return string

GetSimpleObjectNameUW() public method

Gets the simple object name without quantity
public GetSimpleObjectNameUW ( int item_id ) : string
item_id int Item identifier.
return string

GetString() public method

Gets the string at the specified numbers
public GetString ( int BlockNo, int StringNo ) : string
BlockNo int Block no.
StringNo int String no.
return string

GetTextureName() public method

Gets the name of the texture of the wall/floor looked at.
public GetTextureName ( int index ) : string
index int Index.
return string

InitStringController() public method

Inits the string controller.
public InitStringController ( string StringFilePath ) : bool
StringFilePath string String file path.
return bool

TextureDescription() public method

Gets the description for the texture looked at.
public TextureDescription ( int index ) : string
index int Index.
return string

Property Details

instance public_oe static_oe property

The instance of this class
public static StringController, instance
return StringController,