All defined Skills. More...
Inherits ScriptableObject.
Public Member Functions | |
void | UpdateCacheIfNeeded () |
Updates the list of skills from skillFabs list. More... | |
void | UpdateCache () |
Updates the list of skills from skillFabs list. More... | |
GameObject | GetPrefab (UniqueID id) |
Gets the Skill prefab by Id. Return null if failed. More... | |
Skill | GetDefinition (UniqueID id) |
Gets the Skill definition by Id. Return null if failed. More... | |
Skill | GetDefinition (string ident, plyGameObjectIdentifyingType identType) |
Get the defined skill by its name, custom def.ident or def.meta data. Return null if not found. More... | |
UniqueID | GetDefinitionUniqueId (string ident, plyGameObjectIdentifyingType identType) |
Get the defined skill by its name, custom def.ident or def.meta data. Return UniqueID.Empty if not found. More... | |
int | GetDefinitionIdx (UniqueID id) |
Get the Skill definition index into the skills list by its Id. Return -1 if not found. More... | |
string | GetScreenName (UniqueID id) |
Get Skill name by Id. Return "-invalid-" if not found. More... | |
string[] | GetNames () |
Get a list of names of all defined Skills. More... | |
Public Attributes | |
List< GameObject > | skillFabs = new List<GameObject>(0) |
List of defined Skill prefabs. | |
List< Skill > | skills = new List<Skill>(0) |
List of defined Skills. Should call UpdateCache() or UpdateCacheIfNeeded() before using this for first time. | |
Properties | |
static SkillsAsset | Instance [get] |
Provide access to asset at runtime More... | |
All defined Skills.
Gets the Skill definition by Id. Return null if failed.
Skill plyGame.SkillsAsset.GetDefinition | ( | string | ident, |
plyGameObjectIdentifyingType | identType | ||
) |
Get the defined skill by its name, custom def.ident or def.meta data. Return null if not found.
int plyGame.SkillsAsset.GetDefinitionIdx | ( | UniqueID | id | ) |
Get the Skill definition index into the skills list by its Id. Return -1 if not found.
UniqueID plyGame.SkillsAsset.GetDefinitionUniqueId | ( | string | ident, |
plyGameObjectIdentifyingType | identType | ||
) |
Get the defined skill by its name, custom def.ident or def.meta data. Return UniqueID.Empty if not found.
string [] plyGame.SkillsAsset.GetNames | ( | ) |
Get a list of names of all defined Skills.
GameObject plyGame.SkillsAsset.GetPrefab | ( | UniqueID | id | ) |
Gets the Skill prefab by Id. Return null if failed.
string plyGame.SkillsAsset.GetScreenName | ( | UniqueID | id | ) |
Get Skill name by Id. Return "-invalid-" if not found.
void plyGame.SkillsAsset.UpdateCache | ( | ) |
Updates the list of skills from skillFabs list.
void plyGame.SkillsAsset.UpdateCacheIfNeeded | ( | ) |
Updates the list of skills from skillFabs list.
|
staticget |
Provide access to asset at runtime