Contains the defined Actor Attributes. More...
Inherits ScriptableObject.
Public Member Functions | |
| ActorAttribute | GetDefinition (UniqueID id) |
| Get an attribute definition by its Id. Return null if Id is invalid or attribute not found. More... | |
| int | GetDefinitionIdx (UniqueID id) |
| Get an attribute's index in the attributes list by Id. Return -1 if not found. More... | |
| string | GetScreenName (UniqueID id) |
| Return the screen name of an attribute. Return "-invalid-" if not found. More... | |
| string[] | GetNames () |
| Returns a list of names of all defined attributes. More... | |
Public Attributes | |
| List< ActorAttribute > | attributes = new List<ActorAttribute>() |
| List of all defined attributes. | |
| UniqueID | hpAttribId = new UniqueID() |
| Id of Attribute that represents Health in the game. | |
| UniqueID | xpAttribId = new UniqueID() |
| Id of Attribute that represents Experience in the game. | |
Properties | |
| static ActorAttributesAsset | Instance [get] |
| Provide access to asset at runtime More... | |
Contains the defined Actor Attributes.
| ActorAttribute plyGame.ActorAttributesAsset.GetDefinition | ( | UniqueID | id | ) |
Get an attribute definition by its Id. Return null if Id is invalid or attribute not found.
| int plyGame.ActorAttributesAsset.GetDefinitionIdx | ( | UniqueID | id | ) |
Get an attribute's index in the attributes list by Id. Return -1 if not found.
| string [] plyGame.ActorAttributesAsset.GetNames | ( | ) |
Returns a list of names of all defined attributes.
| string plyGame.ActorAttributesAsset.GetScreenName | ( | UniqueID | id | ) |
Return the screen name of an attribute. Return "-invalid-" if not found.
|
staticget |
Provide access to asset at runtime