Code snippets
Quick snippets to build paragraph and contents quickly.
VSCode IDE code snippet prefix list
Currently, the IDE snippet function is only available for VSCode.
VSCode prefix
Description
paragraph
Template for a basic paragraph object with name, content and a choices array.
choice
Template for a choice object that should be put inside choices array. It contains the choice's id, content and nextName
item
Template for an item object with itemName, itemQty, description and itemCode properties.
items
Template for an array of item with one item object inside.
consequence
Template for consequence object, which has 2 empty arrays Arrau<item> and Array<stat>. The consequence object should be inside a choice.
conStat
Template for a stat object for consequence's stat
precondition
Template for a choice or item's precondition. Has 2 optional property: Array<item> and Array<stat>
Code snippets & mock data
In the section bellow, code snippets are divided into two main criteria:
Bare essentials: a blank template with only essential fields
Full: a blank template with all possible property for the object.
Paragraph
{
name: ``,
content: ``,
choices: [
{ id: 1, content: ``, nextName: `` },
],
},Choices
choices: [
{
id: 1,
content: ``,
nextName: ``
},
{
id: 2,
content: ``,
nextName: ``
},
],Last updated
Was this helpful?