Type
InternalGameObjRaw
: GameObjRaw & {_parent
: GameObjreadonly
_compsIds
: Set<string>readonly
_compStates
: Map<string, Comp>readonly
_anonymousCompStates
: Comp[]readonly
_cleanups
: Record<string, ( () => any)[]>readonly
_events
: KEventHandler<any>readonly
_fixedUpdateEvents
: KEvent<[]>readonly
_updateEvents
: KEvent<[]>readonly
_drawEvents
: KEvent<[]>readonly
_inputEvents
: KEventController[]readonly
_onCurCompCleanup
: Function | nullreadonly
_paused
: booleanreadonly
_drawLayerIndex
: numberreadonly
_addComp
(comp: Comp): voidAdds a component or anonymous component.
_removeComp
(id: string): voidRemoves a component without checking for dependencies
_checkDependencies
(comp: Comp): voidCheck if any id of a component's require is not present in _compsIds
, if
there's, throw an error.
param
comp- The component for checking.
_checkDependents
(compId: string): voidCheck if any component (in _compStates
) is dependent of compId, if
there's, throw an error.
param
compId- Component ID for searching.