IParameterInterface
Parameter related functionality
Namespace: VNyanInterface
Methods
getVNyanParameterFloat
Gets VNyan's float parameter by name. Case insensitive
getVNyanParameterFloat(string parameterName)
| Parameter | Type | Description |
|---|---|---|
parameterName | string | Case insensitive name of parameter |
Returns: Parameter value or 0 if not initialized
getVNyanParameterString
Gets VNyan's string parameter by name. Case insensitive
getVNyanParameterString(string parameterName)
| Parameter | Type | Description |
|---|---|---|
parameterName | string | Case insensitive name of parameter |
Returns: Parameter value or 0 if not initialized
setVNyanParameterFloat
Sets VNyan's float parameter
setVNyanParameterFloat(string parameterName, float value)
| Parameter | Type | Description |
|---|---|---|
parameterName | string | Parameter to set |
value | float | Value to set |
setVNyanParameterString
Sets VNyan's string parameter
setVNyanParameterString(string parameterName, string value)
| Parameter | Type | Description |
|---|---|---|
parameterName | string | Parameter to set |
value | string | Value to set |
fillStringWithParameters
Replaces bracketed parameters with parameter values
fillStringWithParameters(string originalString)
| Parameter | Type | Description |
|---|---|---|
originalString | string | String with bracketet parameters |
Returns: String with parameter values
getVNyanDictionaryValue
Gets key's value from dictionary
getVNyanDictionaryValue(string dictionaryName, string keyName)
| Parameter | Type | Description |
|---|---|---|
dictionaryName | string | Name of the dictionary |
keyName | string | Name of the key |
Returns: Returns key's value or null if key doesn't exist
setVNyanDictionaryValue
Sets dictionary key's value to specific value
setVNyanDictionaryValue(string dictionaryName, string keyName, string value)
| Parameter | Type | Description |
|---|---|---|
dictionaryName | string | Name of the dictionary |
keyName | string | Name of the key |
value | string | Value to set |
clearVNyanDictionary
Clears all keys from dictionary
clearVNyanDictionary(string dictionaryName)
| Parameter | Type | Description |
|---|---|---|
dictionaryName | string | Dictionary to clear |
getInternalParameter
Returns built in parameter value
getInternalParameter(InternalParameterType paramType)
| Parameter | Type | Description |
|---|---|---|
paramType | InternalParameterType | Which parameter to return |
Returns: Parameter value
getVNyanDictionaryCopy
Get a copy of dictionary. This copy is not linked to VNyan's dictionary. Modifications to this copy will not affect VNyan's dictionary
getVNyanDictionaryCopy(string dictionaryName)
| Parameter | Type | Description |
|---|---|---|
dictionaryName | string | Dictionary to get copy of |
Returns: Copy of the dictionary
getVNyanDictionary
Gets VNyan's dictionary. This is a reference to VNyan's dictionary, so modifications to this dictionary will affect VNyan's dictionary
getVNyanDictionary(string dictionaryName)
| Parameter | Type | Description |
|---|---|---|
dictionaryName | string | Name of the dictionary |
Returns: Reference to VNyan's dictionary