mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Adds FIELD_SpecialtyArrayField field type and handling for it in PersistenceManager, as well as a use-case of it for the surface field in ConvexShape
This commit is contained in:
parent
e56df92002
commit
61d9e82ce5
9 changed files with 449 additions and 183 deletions
|
|
@ -296,6 +296,9 @@ StringTableEntry Scene::getLevelAsset()
|
|||
|
||||
bool Scene::saveScene(StringTableEntry fileName)
|
||||
{
|
||||
if (!isServerObject())
|
||||
return false;
|
||||
|
||||
//So, we ultimately want to not only save out the level, but also collate all the assets utilized
|
||||
//by the static objects in the scene so we can have those before we parse the level file itself
|
||||
//Useful for preloading or stat tracking
|
||||
|
|
@ -310,9 +313,7 @@ bool Scene::saveScene(StringTableEntry fileName)
|
|||
{
|
||||
if((*itr)->isMethod("onSaving"))
|
||||
{
|
||||
ConsoleValue vars[3];
|
||||
vars[2].setString(fileName);
|
||||
Con::execute((*itr), 3, vars);
|
||||
Con::executef((*itr), "onSaving", fileName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue