Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void LoadScene()
- {
- ref SceneSaveST scene = new SceneSaveST();
- JsonFileLoader<SceneSaveST>.JsonLoadFile( BASE_SCENE_DIR + "\\" + "latest.json", scene );
- foreach( auto param : scene.m_SceneObjects )
- {
- Object object = GetGame().CreateObjectEx( param.param1, param.param2, ECE_CREATEPHYSICS | ECE_NOSURFACEALIGN );
- object.SetOrientation( param.param3 );
- m_Objects.Insert( object );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement