Skip to content

luxe: world/states


import "luxe: world/states" for AState

no docs found

var id : String = ID.uuid
var name : String = "<unknown>"
var parent : AState = null
var persists : Bool = false
var entities : Map = {}

AState.persist(yes : Bool) : unknown

no docs found

AState.get(entity : Entity) : EntityState

no docs found

AState.enter(entity : Entity, fn : Fn) : unknown

no docs found

AState.reenter(entity : Entity, fn : Fn) : unknown

no docs found

AState.exit(entity : Entity, fn : Fn) : unknown

no docs found

AState.tick(entity : Entity, fn : Fn) : unknown

no docs found

AState.goto_after(entity : Entity, state : AState, time : Num) : unknown

no docs found

AState.goto_if(entity : Entity, state : AState, fn : Fn) : unknown

no docs found

AState.goto_when(entity : Entity, state : AState, field : String) : unknown

no docs found

AState.goto_when(entity : Entity, state : AState, field : String, desired_value : Any) : unknown

no docs found

AState.goto_when(entity : Entity, state : AState, field : String, op : Op, desired_value : Any) : unknown

no docs found

AState.goto_on(entity : Entity, state : AState, context : String, wire : Num) : unknown

no docs found

AState.create(in_name : String, in_parent : AState) : AState

no docs found

import "luxe: world/states" for EntityState

no docs found

var time : Num = 0
var timestamp : Num = 0
var actions_enter : List = []
var actions_enter_with_states : List = []
var actions_reenter : List = []
var actions_exit : List = []
var actions_tick : List = []
var actions_if : List = []
var actions_wire : Map = {}
var actions_change : List = []
var state : AState = null
var entity : Entity = 0

EntityState.new(in_state : AState, in_entity : Entity) : EntityState

no docs found

import "luxe: world/states" for EntityStates

no docs found

var container : States = null
var entity : Entity = 0
var active : List = []
var previous : AState = null
var current : AState = null
var next : AState = null

EntityStates.new(in_container : States, in_entity : Entity) : EntityStates

no docs found

EntityStates.is_active(state : AState) : unknown

no docs found

EntityStates.make_inactive(state : AState) : unknown

no docs found

EntityStates.make_active(state : AState) : unknown

no docs found

EntityStates.get_tree(state : AState) : unknown

no docs found

EntityStates.goto(goto_state : AState) : unknown

no docs found

EntityStates.tick(non_world_delta : Num, delta : Num) : unknown

no docs found

import "luxe: world/states" for Op

no docs found

Op.equal : unknown

no docs found

Op.lt : unknown

no docs found

Op.lte : unknown

no docs found

Op.gt : unknown

no docs found

Op.gte : unknown

no docs found

import "luxe: world/states" for States

no docs found

var world : World = 0
var data_block : Block = 0
var data_listener : String = null
var entities : Map = {}

States.tick(delta : Num) : unknown

no docs found

States.goto(entity : Entity, state : AState) : unknown

no docs found

States.get(entity : Entity) : EntityStates

no docs found

States.register(entity : Entity) : unknown

no docs found

States.listen_for_changes() : unknown

no docs found

States.new(in_world : World, in_data_block : Block) : States

no docs found

States.destroy() : unknown

no docs found

import "luxe: world/states" for WireAction

no docs found

var entity : Entity = 0
var connect : String = null
var context : String = null
var wire : Num = 0
var states : List = []

WireAction.new() : WireAction

no docs found