2007-06-11 20:21:27 +03:00
|
|
|
#include "stdafx.h"
|
2007-06-12 12:33:20 +03:00
|
|
|
#include "CObjectHandler.h"
|
2007-08-06 07:03:34 +03:00
|
|
|
#include "CGameInfo.h"
|
|
|
|
#include "CGeneralTextHandler.h"
|
2007-06-11 20:21:27 +03:00
|
|
|
|
|
|
|
void CObjectHandler::loadObjects()
|
|
|
|
{
|
2007-08-06 07:03:34 +03:00
|
|
|
int ID=0;
|
|
|
|
std::string buf = CGameInfo::mainObj->bitmaph->getTextFile("OBJNAMES.TXT");
|
|
|
|
int it=0;
|
|
|
|
while (it<buf.length()-1)
|
2007-06-11 20:21:27 +03:00
|
|
|
{
|
|
|
|
CObject nobj;
|
2007-08-06 07:03:34 +03:00
|
|
|
CGeneralTextHandler::loadToIt(nobj.name,buf,it,3);
|
2007-06-11 20:21:27 +03:00
|
|
|
objects.push_back(nobj);
|
|
|
|
}
|
|
|
|
}
|