Skip to content

Make nested step construction configurable - #372

Draft
krypciak wants to merge 4 commits into
CCDirectLink:masterfrom
krypciak:nested-steps
Draft

krypciak wants to merge 4 commits into
CCDirectLink:masterfrom
krypciak:nested-steps

Conversation

@krypciak

Copy link
Copy Markdown
Contributor

Allow DefaultEvent that loads data from a json file have nested steps.
This is a must have for more complex custom modded steps.
Here's what it looks like if I append the custom steps to events.json:

{
    "FOR_EACH_PLAYER": {
        "attributes": {
            "players": { "type": "Array", "sub": { "_type": "Entity" }, "optional": true },
            "runType": { "type": "String", "optional": true },
            "indexVarName": { "type": "VarCondition", "optional": true },
            "noWait": { "type": "Boolean", "optional": true }
        },
        "branches": { "type": "list", "names": ["steps"] },
        "initialObject": { "steps": [] }
    },
    "MACRO": {
        "attributes": {
            "name": { "type": "String" },
            "args": { "type": "Array", "sub": { "_type": "String" }, "optional": true },
            "argsDepth": { "type": "Number", "optional": true },
            "argsDefault": { "type": "String", "optional": true }
        },
        "branches": { "type": "list", "names": ["steps"] },
        "initialObject": { "steps": [] }
    }
}
image

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant