Skip to main content

IParameterInterface

Parameter related functionality

Namespace: VNyanInterface

Methods​

getVNyanParameterFloat​

Gets VNyan's float parameter by name. Case insensitive

getVNyanParameterFloat(string parameterName)
ParameterTypeDescription
parameterNamestringCase 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)
ParameterTypeDescription
parameterNamestringCase insensitive name of parameter

Returns: Parameter value or 0 if not initialized

setVNyanParameterFloat​

Sets VNyan's float parameter

setVNyanParameterFloat(string parameterName, float value)
ParameterTypeDescription
parameterNamestringParameter to set
valuefloatValue to set

setVNyanParameterString​

Sets VNyan's string parameter

setVNyanParameterString(string parameterName, string value)
ParameterTypeDescription
parameterNamestringParameter to set
valuestringValue to set

fillStringWithParameters​

Replaces bracketed parameters with parameter values

fillStringWithParameters(string originalString)
ParameterTypeDescription
originalStringstringString with bracketet parameters

Returns: String with parameter values

getVNyanDictionaryValue​

Gets key's value from dictionary

getVNyanDictionaryValue(string dictionaryName, string keyName)
ParameterTypeDescription
dictionaryNamestringName of the dictionary
keyNamestringName 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)
ParameterTypeDescription
dictionaryNamestringName of the dictionary
keyNamestringName of the key
valuestringValue to set

clearVNyanDictionary​

Clears all keys from dictionary

clearVNyanDictionary(string dictionaryName)
ParameterTypeDescription
dictionaryNamestringDictionary to clear

getInternalParameter​

Returns built in parameter value

getInternalParameter(InternalParameterType paramType)
ParameterTypeDescription
paramTypeInternalParameterTypeWhich 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)
ParameterTypeDescription
dictionaryNamestringDictionary 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)
ParameterTypeDescription
dictionaryNamestringName of the dictionary

Returns: Reference to VNyan's dictionary