56 uint32 name_length, displayId;
61 if (fread(&displayId,
sizeof(
uint32), 1, model_list_file) != 1)
62 if (feof(model_list_file))
65 if (fread(&name_length,
sizeof(
uint32), 1, model_list_file) != 1
66 || name_length >=
sizeof(buff)
67 || fread(&buff,
sizeof(
char), name_length, model_list_file) != name_length
68 || fread(&v1,
sizeof(
Vector3), 1, model_list_file) != 1
69 || fread(&v2,
sizeof(
Vector3), 1, model_list_file) != 1)
87 fclose(model_list_file);
uint32 getMSTime()
Definition: Timer.h:24
ModelList model_list
Definition: GameObjectModel.cpp:41
uint32_t uint32
Definition: Define.h:150
Definition: GameObjectModel.cpp:31
uint32 GetMSTimeDiffToNow(uint32 oldMSTime)
Definition: Timer.h:42
#define VMAP_INFO_LOG(FILTER,...)
Definition: VMapDefinitions.h:40
const char GAMEOBJECT_MODELS[]
Definition: VMapDefinitions.h:30
#define VMAP_ERROR_LOG(FILTER,...)
Definition: VMapDefinitions.h:38
uint32_t uint32
Definition: g3dmath.h:168
bool isNaN() const
Definition: Vector3.cpp:83
std::string toString() const
Definition: Vector3.cpp:386