UnityToolbox
Brief documentation for all existing scripts.
 
Loading...
Searching...
No Matches
UnityToolbox.Item.Management.ItemField Class Reference

A class summarizing a field by its type, name and value. Required for all classes inheriting ItemDefinition.

Public Member Functions

 ItemField (string fieldName, bool boolValue)
 
 ItemField (string fieldName, string stringValue)
 
 ItemField (string fieldName, int intValue)
 
 ItemField (string fieldName, float floatValue)
 
object GetValue ()
 Returns the value of the field. The type is equal to the FieldType.
 
override bool Equals (object obj)
 Overriden to disregard the reference and check for an equal name.
 
override int GetHashCode ()
 Overriden to disregard the reference and check for an equal name.
 

Properties

string FieldName [get]
 The assembly accurate name of the field.
 
Type FieldType [get]
 The field type.
 

Constructor & Destructor Documentation

◆ ItemField() [1/4]

UnityToolbox.Item.Management.ItemField.ItemField ( string  fieldName,
bool  boolValue 
)

◆ ItemField() [2/4]

UnityToolbox.Item.Management.ItemField.ItemField ( string  fieldName,
string  stringValue 
)

◆ ItemField() [3/4]

UnityToolbox.Item.Management.ItemField.ItemField ( string  fieldName,
int  intValue 
)

◆ ItemField() [4/4]

UnityToolbox.Item.Management.ItemField.ItemField ( string  fieldName,
float  floatValue 
)

Member Function Documentation

◆ Equals()

override bool UnityToolbox.Item.Management.ItemField.Equals ( object  obj)
Parameters
obj
Returns

References UnityToolbox.Item.Management.ItemField.FieldName.

◆ GetHashCode()

override int UnityToolbox.Item.Management.ItemField.GetHashCode ( )

◆ GetValue()

object UnityToolbox.Item.Management.ItemField.GetValue ( )

Property Documentation

◆ FieldName

◆ FieldType

Type UnityToolbox.Item.Management.ItemField.FieldType
get