2019-06-17 08:30:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class CFileLoader
|
|
|
|
{
|
|
|
|
static char ms_line[256];
|
|
|
|
public:
|
|
|
|
static void LoadLevel(const char *filename);
|
|
|
|
static char *LoadLine(int fd);
|
|
|
|
static RwTexDictionary *LoadTexDictionary(const char *filename);
|
2020-05-05 16:06:38 +00:00
|
|
|
static void LoadCollisionFile(const char *filename, uint8 colSlot);
|
2020-05-05 15:04:43 +00:00
|
|
|
static bool LoadCollisionFileFirstTime(uint8 *buffer, uint32 size, uint8 colSlot);
|
|
|
|
static bool LoadCollisionFile(uint8 *buffer, uint32 size, uint8 colSlot);
|
2019-10-16 23:22:39 +00:00
|
|
|
static void LoadCollisionModel(uint8 *buf, struct CColModel &model, char *name);
|
2019-06-17 08:30:02 +00:00
|
|
|
static void LoadModelFile(const char *filename);
|
|
|
|
static RpAtomic *FindRelatedModelInfoCB(RpAtomic *atomic, void *data);
|
|
|
|
static void LoadClumpFile(const char *filename);
|
|
|
|
static bool LoadClumpFile(RwStream *stream, uint32 id);
|
|
|
|
static bool StartLoadClumpFile(RwStream *stream, uint32 id);
|
|
|
|
static bool FinishLoadClumpFile(RwStream *stream, uint32 id);
|
|
|
|
static bool LoadAtomicFile(RwStream *stream, uint32 id);
|
|
|
|
static RpAtomic *SetRelatedModelInfoCB(RpAtomic *atomic, void *data);
|
|
|
|
static RpClump *LoadAtomicFile2Return(const char *filename);
|
|
|
|
static void AddTexDictionaries(RwTexDictionary *dst, RwTexDictionary *src);
|
|
|
|
|
|
|
|
static void LoadObjectTypes(const char *filename);
|
2020-05-05 21:27:43 +00:00
|
|
|
static int LoadObject(const char *line);
|
|
|
|
static int LoadTimeObject(const char *line);
|
2020-05-10 16:14:14 +00:00
|
|
|
static int LoadWeaponObject(const char *line);
|
2019-06-17 08:30:02 +00:00
|
|
|
static void LoadClumpObject(const char *line);
|
|
|
|
static void LoadVehicleObject(const char *line);
|
|
|
|
static void LoadPedObject(const char *line);
|
2020-05-05 21:27:43 +00:00
|
|
|
static int LoadPathHeader(const char *line, int &type);
|
2019-06-17 08:30:02 +00:00
|
|
|
static void LoadPedPathNode(const char *line, int id, int node);
|
2020-05-05 21:27:43 +00:00
|
|
|
static void LoadCarPathNode(const char *line, int id, int node, bool waterPath);
|
2019-06-17 08:30:02 +00:00
|
|
|
static void Load2dEffect(const char *line);
|
2019-06-18 07:50:26 +00:00
|
|
|
|
|
|
|
static void LoadScene(const char *filename);
|
|
|
|
static void LoadObjectInstance(const char *line);
|
|
|
|
static void LoadZone(const char *line);
|
|
|
|
static void LoadCullZone(const char *line);
|
|
|
|
static void LoadPickup(const char *line);
|
|
|
|
|
2019-10-18 22:23:40 +00:00
|
|
|
static void ReloadPaths(const char *filename);
|
2020-04-13 02:32:11 +00:00
|
|
|
static void ReloadObjectTypes(const char *filename);
|
|
|
|
static void ReloadObject(const char *line);
|
|
|
|
static void ReLoadScene(const char *filename); // unused mobile function
|
2019-06-17 08:30:02 +00:00
|
|
|
};
|