CObjectHandler.cpp 387 B

1234567891011121314151617
  1. #include "stdafx.h"
  2. #include "CObjectHandler.h"
  3. #include "CGameInfo.h"
  4. #include "CGeneralTextHandler.h"
  5. void CObjectHandler::loadObjects()
  6. {
  7. int ID=0;
  8. std::string buf = CGameInfo::mainObj->bitmaph->getTextFile("OBJNAMES.TXT");
  9. int it=0;
  10. while (it<buf.length()-1)
  11. {
  12. CObject nobj;
  13. CGeneralTextHandler::loadToIt(nobj.name,buf,it,3);
  14. objects.push_back(nobj);
  15. }
  16. }