Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1.     std::wstring scene = Common::Files::load(PATH_GRAPHIC_SCENES + L"demo.sce1");
  2.     Common::Strings::remove(L"//", L"\n", scene, false);
  3.     std::vector<std::wstring> lines;
  4.     Common::Strings::explode(L"\n", scene, lines);
  5.     for(auto line : lines){
  6.         switch(line[0]){
  7.             case L'O': //number of objects
  8.             break;
  9.             case L'o': //object
  10.             break;
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement