Beispiel #1
0
bool ObArray::load(MfcArchive &file) {
	debugC(5, kDebugLoading, "ObArray::load()");
	int count = file.readCount();

	resize(count);

	for (int i = 0; i < count; i++) {
		CObject *t = file.readClass();

		push_back(*t);
	}

	return true;
}
Beispiel #2
0
bool ObList::load(MfcArchive &file) {
	debugC(5, kDebugLoading, "ObList::load()");
	int count = file.readCount();

	debugC(9, kDebugLoading, "ObList::count: %d:", count);

	for (int i = 0; i < count; i++) {
		debugC(9, kDebugLoading, "ObList::[%d]", i);
		CObject *t = file.readClass();

		push_back(t);
	}

	return true;
}
Beispiel #3
0
bool DWordArray::load(MfcArchive &file) {
	debugC(5, kDebugLoading, "DWordArray::load()");
	int count = file.readCount();

	debugC(9, kDebugLoading, "DWordArray::count: %d", count);

	resize(count);

	for (int i = 0; i < count; i++) {
		int32 t = file.readSint32LE();

		push_back(t);
	}

	return true;
}
Beispiel #4
0
bool PreloadItems::load(MfcArchive &file) {
    debugC(5, kDebugLoading, "PreloadItems::load()");

    int count = file.readCount();

    clear();

    for (int i = 0; i < count; i++) {
        PreloadItem *t = new PreloadItem();
        t->preloadId1 = file.readUint32LE();
        t->preloadId2 = file.readUint32LE();
        t->sceneId = file.readUint32LE();
        t->param = file.readSint32LE();

        push_back(t);
    }

    return true;
}