@acceleratxr/core_sdk / ArchetypeDefinition

Class: ArchetypeDefinition#

An archetype is a specific subset of one or more skill trees that a persona can elect to follow.

REQUIRES: Progression Services

author Jean-Philippe Steinmetz info@acceleratxr.com

Hierarchy#

Index#

Constructors#

Properties#

Accessors#

Constructors#

constructor#

+ new ArchetypeDefinition(other?: any): ArchetypeDefinition

Overrides EntityBase.constructor

Defined in src/models/ArchetypeDefinition.ts:51

Parameters:#

Name

Type

other?

any

Returns: ArchetypeDefinition

Properties#

data#

data: any = undefined

Defined in src/models/ArchetypeDefinition.ts:51

Stores any custom data to be used by the product.


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.


description#

description: string = “”

Defined in src/models/ArchetypeDefinition.ts:29

A textual description of the archetype.


icon#

icon: string = “”

Defined in src/models/ArchetypeDefinition.ts:34

The icon to display when representing the archetype.


name#

name: string = “”

Defined in src/models/ArchetypeDefinition.ts:19

The unique name of the archetype.


productUid#

productUid: string | undefined = undefined

Defined in src/models/ArchetypeDefinition.ts:41

The uid of the product that this archetype definition is associated with.

REQUIRES: Progression Services.


skills#

skills: Array<string> = []

Defined in src/models/ArchetypeDefinition.ts:46

The list of all root skill uid’s that define this archetype. A root skill is the first skill in a tree that has few to no requirements.


title#

title: string = “”

Defined in src/models/ArchetypeDefinition.ts:24

A textual title or name of the archetype.


uid#

uid: string = uuid.v4()

Inherited from EntityBase.uid

Defined in src/EntityBase.ts:13

The universally unique identifier of the object.


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/ArchetypeDefinition.ts:14

Returns: string