oxid/core
GameObject
import {GameObject} from 'oxid/core';
GameObject is the base class used by the current scripting model.
Hooks
class GameObject {
onInit?(): void;
onUpdate?(dt: number): void;
onDraw?(): void;
}
All hooks are optional. The runtime calls them only when they exist on the object returned by main().