Advertisement
iKurdo

Solucion COM ObjectEditor.c

Jul 14th, 2020
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. void LoadScene()
  2.     {
  3.         ref SceneSaveST scene = new SceneSaveST();
  4.         JsonFileLoader<SceneSaveST>.JsonLoadFile( BASE_SCENE_DIR + "\\" + "latest.json", scene );
  5.         foreach( auto param : scene.m_SceneObjects )
  6.         {
  7.             Object object = GetGame().CreateObjectEx( param.param1, param.param2, ECE_CREATEPHYSICS | ECE_NOSURFACEALIGN );
  8.             object.SetOrientation( param.param3 );
  9.             m_Objects.Insert( object );
  10.         }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement