Kemena3D
Loading...
Searching...
No Matches
kemena::kScriptInstance Struct Reference
module nullptr

A live, per-object compiled script module. More...

#include <kscriptmanager.h>

Collaboration diagram for kemena::kScriptInstance:

Public Attributes

kString componentUuid
 Matches the owning kScript::uuid.
kString scriptUuid
 Script asset this was built from.
kString moduleName
 Private AngelScript module name.
asIScriptFunction * fn [K_SCRIPT_EVENT_COUNT] = {}
 Cached lifecycle handles.
kObjectowner = nullptr
 Object this instance belongs to.
bool awakeCalled = false
 Awake() has run.
bool startCalled = false
 Start() has run.
bool valid = false
 Module compiled/loaded successfully.

Detailed Description

A live, per-object compiled script module.

Created by kScriptManager::createInstance(). Holds a private module so script globals are not shared between objects, plus cached lifecycle function handles so per-frame dispatch needs no string lookups.

Member Data Documentation

◆ awakeCalled

bool kemena::kScriptInstance::awakeCalled = false

Awake() has run.

◆ componentUuid

kString kemena::kScriptInstance::componentUuid

Matches the owning kScript::uuid.

◆ fn

asIScriptFunction* kemena::kScriptInstance::fn[K_SCRIPT_EVENT_COUNT] = {}

Cached lifecycle handles.

◆ moduleName

kString kemena::kScriptInstance::moduleName

Private AngelScript module name.

◆ owner

kObject* kemena::kScriptInstance::owner = nullptr

Object this instance belongs to.

◆ scriptUuid

kString kemena::kScriptInstance::scriptUuid

Script asset this was built from.

◆ startCalled

bool kemena::kScriptInstance::startCalled = false

Start() has run.

◆ valid

bool kemena::kScriptInstance::valid = false

Module compiled/loaded successfully.


The documentation for this struct was generated from the following file: