mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 19:53:48 +00:00
Integrate new CInterface into the engine-console
This commit is contained in:
parent
8cdad51639
commit
cd06f569fa
6 changed files with 67 additions and 8 deletions
|
|
@ -42,12 +42,13 @@ namespace Sim
|
|||
return Sim::getDataBlockGroup()->findObject(StringTable->insert(pName));
|
||||
}
|
||||
|
||||
DefineNewEngineFunction(WrapObject, SimObjectPtr<SimObject>*, (SimObject* pObject), , "")
|
||||
// EngineAPI doesn't work with SimObjectPtr
|
||||
TORQUE_API SimObjectPtr<SimObject>* fnWrapObject (SimObject* pObject)
|
||||
{
|
||||
return new SimObjectPtr<SimObject>(pObject);
|
||||
}
|
||||
|
||||
DefineNewEngineFunction(DeleteObjectPtr, void, (SimObjectPtr<SimObject>* pObjectPtr), , "")
|
||||
TORQUE_API void fnDeleteObjectPtr(SimObjectPtr<SimObject>* pObjectPtr)
|
||||
{
|
||||
delete pObjectPtr;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue