Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::wstring scene = Common::Files::load(PATH_GRAPHIC_SCENES + L"demo.sce1");
- Common::Strings::remove(L"//", L"\n", scene, false);
- std::vector<std::wstring> lines;
- Common::Strings::explode(L"\n", scene, lines);
- for(auto line : lines){
- switch(line[0]){
- case L'O': //number of objects
- break;
- case L'o': //object
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement