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