예제 #1
0
void NWNXCreateArea(void *pModule, char *sResRef)
{
	CResRef res;
	CResRef____as(&res, sResRef);
	void *pArea = malloc(0x20C);
	areas.Log(0, "Creating area '%s'\n", sResRef);
	CNWSArea__CNWSArea(pArea, res, 0, OBJECT_INVALID);
	areas.Log(0, "Loading area '%s'\n", sResRef);
	CNWSArea__LoadArea(pArea, 0);
	dword nAreaID = *((dword *)pArea+0x32);
	areas.Log(0, "AreaID=%08lX\n", nAreaID);
	void *pArray = ((dword *)pModule+0x6);
	CExoArrayList__Add(pArray, nAreaID);
	areas.nLastAreaID = nAreaID;
}
예제 #2
0
int CNWSArea_s::LoadArea(int a2) {
	return CNWSArea__LoadArea(this, a2);
}