Interface GameObjectPrototype

Updatable is an object that is notified every tick via it's Updatable.update method call.

interface GameObjectPrototype {
    init?: ((...args: any) => void);
    loaded?: (() => void);
    remove?: boolean;
    update: (() => void);
}

Hierarchy (view full)

Properties

init?: ((...args: any) => void)

Function that is called when a new instance of GameObject is created, the engine passes all the arguments of GameObject.deploy function to this function.

loaded?: (() => void)

Function that is called when a GameObject is loaded.

remove?: boolean

Once true, the object will be removed from updatables list and will no longer receive update calls.

update: (() => void)

Called every tick.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.