@acceleratxr/core_sdk / Skill
Class: Skill#
Tracks the progress of a specific skill for a given persona and archetype.
REQUIRES: Progression Services
author Jean-Philippe Steinmetz info@acceleratxr.com
Hierarchy#
-
↳ Skill
Index#
Constructors#
Properties#
Accessors#
Constructors#
constructor#
+ new Skill(other?: any): Skill
Overrides EntityBase.constructor
Defined in src/models/Skill.ts:50
Parameters:#
Name |
Type |
|---|---|
|
any |
Returns: Skill
Properties#
archetypeUid#
• archetypeUid: string = “”
Defined in src/models/Skill.ts:20
The unique identifier of the archetype associated with the persona and skill.
dateCreated#
• dateCreated: Date = new Date()
Inherited from EntityBase.dateCreated
Defined in src/EntityBase.ts:18
The date and time that the object was created.
dateModified#
• dateModified: Date = new Date()
Inherited from EntityBase.dateModified
Defined in src/EntityBase.ts:23
The date and time that the object was last modified.
enabled#
• enabled: boolean = true
Defined in src/models/Skill.ts:40
Indicates if the skill is currently enabled and should be tracked if not already unlocked.
personaUid#
• personaUid: string = “”
Defined in src/models/Skill.ts:30
The unique identifier of the persona whose skill progress is being tracked.
productUid#
• productUid: string | undefined = undefined
Defined in src/models/Skill.ts:35
The uid of the product that this server instance is associated with.
progress#
• progress: Array<SkillRequirementProgress> = []
Defined in src/models/Skill.ts:45
The persona’s curent progress towards unlocking the skill.
skillUid#
• skillUid: string = “”
Defined in src/models/Skill.ts:25
The unique identifier of the skill being tracked.
uid#
• uid: string = uuid.v4()
Inherited from EntityBase.uid
Defined in src/EntityBase.ts:13
The universally unique identifier of the object.
unlocked#
• unlocked: boolean = false
Defined in src/models/Skill.ts:50
Indicates if the persona has unlocked and can begin the skill.
version#
• version: number = 0
Inherited from EntityBase.version
Defined in src/EntityBase.ts:28
The optimistic locking version of the object.
Accessors#
ClassName#
• Staticget ClassName(): string
Defined in src/models/Skill.ts:15
Returns: string