Sonolus Wiki

Engine Data Archetype

Engine data archetype is used by level to populate entities during gameplay.

Syntax

type EngineDataArchetype = {
    script: number
    data?: {
        index: number
        values: number[]
    }
    input?: boolean
}

script

Index of script in scripts array.

input

If true, Sonolus will treat entities with this archetype to be playable entities, and will contribute to judgment, combo, life, score, etc.

Example

{
    "script": 0,
    "data": {
        "index": 5,
        "values": [10, 20]
    },
    "input": true
}