mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge branch 'master' into console-func-refactor
Conflicts: Engine/source/app/net/net.cpp Engine/source/console/astNodes.cpp Engine/source/console/compiledEval.cpp Engine/source/console/console.h Engine/source/console/consoleInternal.h Engine/source/console/engineAPI.h
This commit is contained in:
commit
b507dc9555
6487 changed files with 315149 additions and 609761 deletions
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
// External scripting cinterface, suitable for import into any scripting system which support "C" interfaces (C#, Python, Lua, Java, etc)
|
||||
|
||||
#ifdef TORQUE_OS_WIN32
|
||||
#ifdef TORQUE_OS_WIN
|
||||
#include "windowManager/win32/win32Window.h"
|
||||
#include "windowManager/win32/winDispatch.h"
|
||||
#endif
|
||||
|
|
@ -164,7 +164,7 @@ extern "C" {
|
|||
return false;
|
||||
}
|
||||
|
||||
void script_simobject_setfield_int(U32 objectId, const char* fieldName, int v)
|
||||
void script_simobject_setfield_int(U32 objectId, const char* fieldName, S32 v)
|
||||
{
|
||||
SimObject *object = Sim::findObject( objectId );
|
||||
if( object )
|
||||
|
|
@ -223,7 +223,7 @@ extern "C" {
|
|||
{
|
||||
// maxArgs improper on a number of console function/methods
|
||||
if (argc < entry->mMinArgs)// || argc > entry->mMaxArgs)
|
||||
return "";
|
||||
return false;
|
||||
|
||||
SimObject* o = NULL;
|
||||
|
||||
|
|
@ -231,7 +231,7 @@ extern "C" {
|
|||
{
|
||||
o = Sim::findObject(dAtoi(argv[1]));
|
||||
if (!o)
|
||||
return "";
|
||||
return false;
|
||||
}
|
||||
|
||||
StringStackConsoleWrapper args(argc, argv);
|
||||
|
|
@ -296,12 +296,12 @@ extern "C" {
|
|||
entry->cb.mVoidCallbackFunc(o, args.count(), args);
|
||||
}
|
||||
|
||||
int script_simobject_get_id(SimObject* so)
|
||||
S32 script_simobject_get_id(SimObject* so)
|
||||
{
|
||||
return so->getId();
|
||||
}
|
||||
|
||||
int script_simobject_find(const char* classname, const char* name)
|
||||
S32 script_simobject_find(const char* classname, const char* name)
|
||||
{
|
||||
SimObject *object;
|
||||
if( Sim::findObject( name, object ) )
|
||||
|
|
@ -388,9 +388,9 @@ extern "C" {
|
|||
}
|
||||
|
||||
|
||||
#ifdef TORQUE_OS_WIN32
|
||||
#ifdef TORQUE_OS_WIN
|
||||
|
||||
void script_input_event(int type, int value1, int value2)
|
||||
void script_input_event(S32 type, S32 value1, S32 value2)
|
||||
{
|
||||
if (PlatformWindowManager::get() && PlatformWindowManager::get()->getFirstWindow())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue