Methods


Registry.createActor(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Actor


Registry.createBullet(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Bullet


Registry.createController(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Event|Object


Registry.createDrawFX(id: string, : any)

Arguments:

id: string
: any

Returns:

1: DrawFX


Registry.createEncounter(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Encounter


Registry.createEnemy(id: string, : any)

Arguments:

id: string
: any

Returns:

1: EnemyBattler


Registry.createEvent(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Event|Object


Registry.createItem(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Item


Registry.createMap(id: string, world: World, : any)

Arguments:

id: string
world: World
: any

Returns:

1: Map


Registry.createObject(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Object


Registry.createPartyMember(id: string, : any)

Arguments:

id: string
: any

Returns:

1: PartyMember


Registry.createShop(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Shop


Registry.createSpell(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Spell


Registry.createWave(id: string, : any)

Arguments:

id: string
: any

Returns:

1: Wave


Registry.createWorldBullet(id: string, : any)

Arguments:

id: string
: any

Returns:

1: WorldBullet


Registry.getActor(id: string)

Arguments:

id: string

Returns:

1: Actor|nil


Registry.getBattleCutscene(group: string, id: string?)

Arguments:

group: string
id: string?

Returns:

cutscene: function|nil
grouped: boolean|nil


Registry.getBullet(id: string)

Arguments:

id: string

Returns:

1: Bullet|nil


Registry.getController(id: string)

Arguments:

id: string

Returns:

1: Event|Object|nil


Registry.getDrawFX(id: string)

Arguments:

id: string

Returns:

1: DrawFX|nil


Registry.getEncounter(id: string)

Arguments:

id: string

Returns:

1: Encounter|nil


Registry.getEnemy(id: string)

Arguments:

id: string

Returns:

1: EnemyBattler|nil


Registry.getEvent(id: string)

Arguments:

id: string

Returns:

1: Event|Object|nil


Registry.getEventScript(group: string, id: string?)

Arguments:

group: string
id: string?

Returns:

cutscene: function|nil
grouped: boolean|nil


Registry.getItem(id: string)

Arguments:

id: string

Returns:

1: Item|nil


Registry.getMap(id: string)

Arguments:

id: string

Returns:

1: Map|nil


Registry.getMapData(id: string)

Arguments:

id: string

Returns:

1: table|nil


Registry.getObject(id: string)

Arguments:

id: string

Returns:

1: Object|nil


Registry.getPartyMember(id: string)

Arguments:

id: string

Returns:

1: PartyMember|nil


Registry.getShop(id: string)

Arguments:

id: string

Returns:

1: Shop|nil


Registry.getSpell(id: string)

Arguments:

id: string

Returns:

1: Spell|nil


Registry.getTileset(id: string)

Arguments:

id: string

Returns:

1: Tileset|nil


Registry.getWave(id: string)

Arguments:

id: string

Returns:

1: Wave|nil


Registry.getWorldBullet(id: string)

Arguments:

id: string

Returns:

1: WorldBullet|nil


Registry.getWorldCutscene(group: string, id: string?)

Arguments:

group: string
id: string?

Returns:

cutscene: function|nil
grouped: boolean|nil






































Registry.initialize(preload: boolean?)

Arguments:

preload: boolean?


Registry.iterScripts(base_path: string, exclude_folder: boolean?)

Arguments:

base_path: string
exclude_folder: boolean?

Returns:

1: fun()string?, string?, ...unknown


Registry.registerActor(id: string, class: Actor)

Arguments:

id: string
class: Actor




Registry.registerBullet(id: string, class: Bullet)

Arguments:

id: string
class: Bullet


Registry.registerController(id: string, class: Event|Object)

Arguments:

id: string
class: Event|Object

The base class of all objects in Kristal.
When added to the stage, an object will be updated and rendered.







Registry.registerEvent(id: string, class: Event|Object)

Arguments:

id: string
class: Event|Object

The base class of all objects in Kristal.
When added to the stage, an object will be updated and rendered.





Registry.registerGlobal(id: string, value: any, no_warning: boolean?)

Arguments:

id: string
value: any
no_warning: boolean?


Registry.registerItem(id: string, class: Item)

Arguments:

id: string
class: Item


Registry.registerMap(id: string, class: Map)

Arguments:

id: string
class: Map


Registry.registerMapData(id: string, data: table)

Arguments:

id: string
data: table




Registry.registerShop(id: string, class: Shop)

Arguments:

id: string
class: Shop


Registry.registerSpell(id: string, class: Spell)

Arguments:

id: string
class: Spell


Registry.registerTileset(id: string, class: Tileset)

Arguments:

id: string
class: Tileset


Registry.registerWave(id: string, class: Wave)

Arguments:

id: string
class: Wave









Fields














Registry.map_data: table<string, table>

TODO: Document map data















Undocumented