40 |
return pEngineChannel->GetScriptCallbackID(m_vm->m_event); |
return pEngineChannel->GetScriptCallbackID(m_vm->m_event); |
41 |
} |
} |
42 |
|
|
43 |
|
// built-in array variable %NKSP_CALLBACK_CHILD_ID[] |
44 |
|
|
45 |
|
InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent) |
46 |
|
: m_vm(parent) |
47 |
|
{ |
48 |
|
} |
49 |
|
|
50 |
|
VMIntArrayExpr* InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::asIntArray() const { |
51 |
|
return const_cast<VMIntArrayExpr*>( dynamic_cast<const VMIntArrayExpr*>(this) ); |
52 |
|
} |
53 |
|
|
54 |
|
int InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::arraySize() const { |
55 |
|
return m_vm->m_event->countChildHandlers(); |
56 |
|
} |
57 |
|
|
58 |
|
int InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID::evalIntElement(uint i) { |
59 |
|
if (i >= arraySize()) return 0; |
60 |
|
return m_vm->m_event->childHandlerID[i]; |
61 |
|
} |
62 |
|
|
63 |
// built-in variable %ALL_EVENTS |
// built-in variable %ALL_EVENTS |
64 |
|
|
65 |
InstrumentScriptVMDynVar_ALL_EVENTS::InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent) |
InstrumentScriptVMDynVar_ALL_EVENTS::InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent) |