Type

InternalGameObjRaw

: GameObjRaw & {

_parent

: GameObj

readonly

_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 | null

readonly

_tags

: Set<Tag>

readonly

_paused

: boolean

readonly

_drawLayerIndex

: number

readonly

_addComp

(comp: Comp): void

Adds a component or anonymous component.

_removeComp

(id: string): void

Removes a component without checking for dependencies

_checkDependencies

(comp: Comp): void

Check 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): void

Check if any component (in _compStates) is dependent of compId, if there's, throw an error.

param compId- Component ID for searching.

}
kaplay logo

Components