Constructor


World(map: any)

Arguments:

map: any




Methods




World:attachFollowers(return_speed: any)

Arguments:

return_speed: any






World:checkCollision(collider: any, enemy_check: any)

Arguments:

collider: any
enemy_check: any

Returns:

1: boolean
2: unknown|nil










World:fadeInto(callback: any)

Arguments:

callback: any


World:getActionBox(party_member: any)

Arguments:

party_member: any

Returns:

1: unknown|nil




World:getCellFlag(name: any, default: any)

Arguments:

name: any
default: any

Returns:

1: unknown|nil


World:getCharacter(id: any, index: any)

Arguments:

id: any
index: any

Returns:

1: unknown


World:getCollision(enemy_check: any)

Arguments:

enemy_check: any

Returns:

1: table


World:getEvent(id: any)

Arguments:

id: any

Returns:

1: unknown|nil


World:getEvents(name: any)

Arguments:

name: any

Returns:

1: table|nil


World:getPartyCharacter(party: any)

Arguments:

party: any

Returns:

1: unknown




World:heal(target: any, amount: any, text: any)

Arguments:

target: any
amount: any
text: any




World:hurtParty(battler: any, amount: any)

Arguments:

battler: any
amount: any

Returns:

1: boolean


World:inBattle()

Returns:

1: boolean








World:onKeyPressed(key: any)

Arguments:

key: any


World:onRemove(parent: any)

Arguments:

parent: any


World:onStateChange(old: any, new: any)

Arguments:

old: any
new: any


World:openMenu(menu: any, layer: any)

Arguments:

menu: any
layer: any

Returns:

1: DarkMenu|LightMenu|nil


World:parseLayer(layer: any)

Arguments:

layer: any

Returns:

1: integer


World:partyReact(party_member: any, text: any, display_time: any)

Arguments:

party_member: any
text: any
display_time: any


World:registerCall(name: any, scene: any)

Arguments:

name: any
scene: any


World:removeFollower(chara: any)

Arguments:

chara: any

Returns:

1: unknown


World:replaceCall(name: any, index: any, scene: any)

Arguments:

name: any
index: any
scene: any


World:setBattle(value: any)

Arguments:

value: any


World:setCameraAttached(attached_x: any, attached_y: any)

Arguments:

attached_x: any
attached_y: any


World:setCameraAttachedX(attached: any)

Arguments:

attached: any


World:setCameraAttachedY(attached: any)

Arguments:

attached: any


World:setCameraTarget(target: any)

Arguments:

target: any


World:setCellFlag(name: any, value: any)

Arguments:

name: any
value: any


World:setState(state: any)

Arguments:

state: any


World:setupMap(map: any, : unknown)

Arguments:

map: any
: unknown


World:shakeCamera(x: any, y: any, friction: any)

Arguments:

x: any
y: any
friction: any


World:shopTransition(shop: any, options: any)

Arguments:

shop: any
options: any




World:showText(text: any, after: any)

Arguments:

text: any
after: any




World:spawnBullet(bullet: any, : unknown)

Arguments:

bullet: any
: unknown

Returns:

1: WorldBullet|nil


World:spawnFollower(chara: any, options: any)

Arguments:

chara: any
options: any

Returns:

1: Actor|Follower|nil


World:spawnNPC(actor: any, x: any, y: any, properties: any)

Arguments:

actor: any
x: any
y: any
properties: any

Returns:

1: unknown|nil


World:spawnObject(obj: any, layer: any)

Arguments:

obj: any
layer: any

Returns:

1: unknown


World:spawnParty(marker: any, party: any, extra: any, facing: any)

Arguments:

marker: any
party: any
extra: any
facing: any




World:startCutscene(group: any, id: any, : unknown)

Arguments:

group: any
id: any
: unknown

Returns:

1: WorldCutscene




World:transitionMusic(next: any, fade_out: any)

Arguments:

next: any
fade_out: any





Fields



Undocumented























World.controller_parent: Object

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

































































World.state: string

states: GAMEPLAY, FADING, MENU Make warnings shut up, TODO: fix this