Class StatDetailDefinition
Detail definition to establish that item uses certain stats, and also to set default values for those stats.
Implements
Inherited Members
Namespace: UnityEngine.GameFoundation
Assembly: solution.dll
Syntax
public class StatDetailDefinition : BaseDetailDefinition, ISerializationCallbackReceiver
Methods
Name | Description |
---|---|
AddStatFloat(int, float) | Adds default value to StatDetailDefinition for specified stat. This method throws if not in editor mode. |
AddStatInt(int, int) | Adds default value to StatDetailDefinition for specified stat. This method throws if not in editor mode. |
DisplayName() | Returns 'friendly' display name for this detail definition. |
GetStatFloat(int) | Get default value for specified stat. |
GetStatFloat(string) | Get default value for specified stat. |
GetStatInt(int) | Get default value for specified stat. |
GetStatInt(string) | Get default value for specified stat. |
OnAfterDeserialize() | Called after deserializing to update dictionary from serialized data |
OnBeforeSerialize() | Called before serializing to prepare dictionary to be serialized |
RemoveStatFloat(int) | Remove default value to StatDetailDefinition for specified stat. This method throws if not in editor mode. |
RemoveStatInt(int) | Remove default value to StatDetailDefinition for specified stat. This method throws if not in editor mode. |