James Mitchell
e9cbcd173d
Adding IsValid to vscript
2020-06-20 13:10:37 +10:00
James Mitchell
07eb28ffe8
Fixing issue with restored vscript classes that are not registered being unable to be instantiated
2020-06-09 19:51:20 +10:00
James Mitchell
859447ee69
Hiding squirrel compiler warnings when building vscript ( fixes #14 )
2020-06-07 14:47:49 +10:00
James Mitchell
cd31f9db15
Fixing repeated save/restore where regexp would fail to serialize
2020-05-31 17:06:24 +10:00
James Mitchell
76db66f70a
Adding script_help support
2020-05-31 15:37:54 +10:00
James Mitchell
30032b70c9
Fixing issue with vscript restore having issues with cached weak references
2020-05-31 12:22:31 +10:00
James Mitchell
3c6c5c1d81
Adding vscript GetKeyValue vscript
...
Intended usage:
```
int nIterator = -1;
ScriptVariant_t key, value;
while ((nIterator = pScriptVM->GetKeyValue(table, nIterator, &key, &value)) != -1)
{
printVariant(key);
Msg("=");
printVariant(value);
Msg("\n");
pScriptVM->ReleaseValue(key);
pScriptVM->ReleaseValue(value);
}
```
2020-05-24 14:54:46 +10:00
James Mitchell
2363a22e3e
Cleaning up some TODO messages
2020-05-24 11:44:26 +10:00
James Mitchell
897534aec6
Making vscript print consistent, adding printl
2020-05-24 11:18:15 +10:00
James Mitchell
d657e2b713
Adding missing Vector vscript functions
2020-05-24 10:58:24 +10:00
James Mitchell
18012de594
Adding support for vscript support for _tostring
2020-05-24 10:05:15 +10:00
James Mitchell
1210dee374
Various vscript fixes
...
* Fixes scopes not being restored from a save
* Fixes closure environment not being restored from a save
* Fixes singletons not being properly restored from a save
* Fixes root table being incorrectly duplicated in a save
* Fixes various cases where duplicate objects could be created from a save
2020-05-21 21:24:10 +10:00
James Mitchell
33e7a45657
Removing the closure parameter for class constructor, as we now have the typetag
2020-05-20 22:23:02 +10:00
James Mitchell
e816832994
Making Vector and ClassInstanceData not be a separate heap allocation in vscript
2020-05-20 22:15:38 +10:00
James Mitchell
f3dbcaf480
Some fixes to save/restore vscript
2020-05-20 21:41:04 +10:00
James Mitchell
3bdbef4169
Initial support for vscript save/restore
2020-05-19 22:09:09 +10:00
James Mitchell
9223601321
Adding vscript implementation
2020-05-15 19:17:08 +10:00