mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
VScript: fix method order
More logical order of newly added methods.
This commit is contained in:
parent
f8f8be9870
commit
e7fd19cdf3
@ -130,16 +130,6 @@ bool CSquirrelVM::Run(const SQChar* const script)
|
||||
return success;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
// Purpose: executes a code callback
|
||||
// Input : *name -
|
||||
// Output : true on success, false otherwise
|
||||
//---------------------------------------------------------------------------------
|
||||
bool CSquirrelVM::ExecuteCodeCallback(const SQChar* const name)
|
||||
{
|
||||
return CSquirrelVM__ExecuteCodeCallback(this, name);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
// Purpose: executes a function by handle
|
||||
// Input : hFunction -
|
||||
@ -155,6 +145,16 @@ ScriptStatus_t CSquirrelVM::ExecuteFunction(HSCRIPT hFunction, void** pArgs, uns
|
||||
return CSquirrelVM__ExecuteFunction(this, hFunction, pArgs, nArgs, pReturn, hScope);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
// Purpose: executes a code callback
|
||||
// Input : *name -
|
||||
// Output : true on success, false otherwise
|
||||
//---------------------------------------------------------------------------------
|
||||
bool CSquirrelVM::ExecuteCodeCallback(const SQChar* const name)
|
||||
{
|
||||
return CSquirrelVM__ExecuteCodeCallback(this, name);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
// Purpose: registers a code function
|
||||
// Input : *s -
|
||||
|
@ -25,14 +25,14 @@ public:
|
||||
SQRESULT RegisterFunction(const SQChar* scriptname, const SQChar* nativename, const SQChar* helpstring, const SQChar* returntype, const SQChar* parameters, void* functor);
|
||||
SQRESULT RegisterConstant(const SQChar* name, SQInteger value);
|
||||
|
||||
bool ExecuteCodeCallback(const SQChar* const name);
|
||||
|
||||
FORCEINLINE HSQUIRRELVM GetVM() const { return m_hVM; }
|
||||
FORCEINLINE SQCONTEXT GetContext() const { return m_iContext; }
|
||||
FORCEINLINE eDLL_T GetNativeContext() const { return (eDLL_T)GetContext(); }
|
||||
|
||||
bool Run(const SQChar* const script);
|
||||
|
||||
ScriptStatus_t ExecuteFunction(HSCRIPT hFunction, void** pArgs, unsigned int nArgs, void* pReturn, HSCRIPT hScope);
|
||||
bool ExecuteCodeCallback(const SQChar* const name);
|
||||
|
||||
private:
|
||||
bool unk_00;
|
||||
|
Loading…
x
Reference in New Issue
Block a user