Operator implicit operator
implicit operator int(StatValue)
The integer value for this stat if its type is 'Int'.
Declaration
public static implicit operator int(StatValue value)
Parameters
Type | Name | Description |
---|---|---|
StatValue | value | StatValue to retrieve integer value from. |
Returns
Type | Description |
---|---|
int |
implicit operator StatValue(int)
Construct a StatValue from an integer.
Declaration
public static implicit operator StatValue(int value)
Parameters
Type | Name | Description |
---|---|---|
int | value | integer value to place into StatValue. |
Returns
Type | Description |
---|---|
StatValue |
implicit operator float(StatValue)
The float value for this stat if its type is 'Float' else int value cast to a float.
Declaration
public static implicit operator float(StatValue value)
Parameters
Type | Name | Description |
---|---|---|
StatValue | value | StatValue to retrieve float value from. |
Returns
Type | Description |
---|---|
float |
implicit operator StatValue(float)
Construct a StatValue from an float.
Declaration
public static implicit operator StatValue(float value)
Parameters
Type | Name | Description |
---|---|---|
float | value | float value to place into StatValue. |
Returns
Type | Description |
---|---|
StatValue |