mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-17 21:53:47 +00:00
Beginnings of the "pass everything using a native type wrapper" console code.
- ConsoleValue class is now the base value class. - ConsoleValueRef is now used to supply function parameters. Values are disposable. - Script functions return values instead of just strings where possible. - Variables can be disposable strings - Bytecode changed Fix the issues with console method parameters and fields which prevented missions from loading.
This commit is contained in:
parent
394d87cd54
commit
38c8e52c1d
68 changed files with 1511 additions and 529 deletions
|
|
@ -316,7 +316,7 @@ void SFXSource::initPersistFields()
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
bool SFXSource::processArguments( S32 argc, const char **argv )
|
||||
bool SFXSource::processArguments( S32 argc, ConsoleValueRef *argv )
|
||||
{
|
||||
// Don't allow subclasses of this to be created via script. Force
|
||||
// usage of the SFXSystem functions.
|
||||
|
|
|
|||
|
|
@ -382,7 +382,7 @@ class SFXSource : public SimGroup
|
|||
|
||||
/// We overload this to disable creation of
|
||||
/// a source via script 'new'.
|
||||
virtual bool processArguments( S32 argc, const char **argv );
|
||||
virtual bool processArguments( S32 argc, ConsoleValueRef *argv );
|
||||
|
||||
// Console getters/setters.
|
||||
static bool _setDescription( void *obj, const char *index, const char *data );
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ void SFXTrack::initPersistFields()
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
bool SFXTrack::processArguments( S32 argc, const char **argv )
|
||||
bool SFXTrack::processArguments( S32 argc, ConsoleValueRef *argv )
|
||||
{
|
||||
if( typeid( *this ) == typeid( SFXTrack ) )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class SFXTrack : public SimDataBlock
|
|||
StringTableEntry mParameters[ MaxNumParameters ];
|
||||
|
||||
/// Overload this to disable direct instantiation of this class via script 'new'.
|
||||
virtual bool processArguments( S32 argc, const char **argv );
|
||||
virtual bool processArguments( S32 argc, ConsoleValueRef *argv );
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue