summaryrefslogtreecommitdiffstats
path: root/src/FileLoader.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-17 10:30:02 +0200
committeraap <aap@papnet.eu>2019-06-17 22:40:15 +0200
commitb5fba778c4a307f0a5721c9b3b0efb38be96634b (patch)
tree9fe0738d1d6dcf4677aac12e1efadff18887f7b4 /src/FileLoader.h
parentMerge pull request #20 from gennariarmando/master (diff)
downloadre3-b5fba778c4a307f0a5721c9b3b0efb38be96634b.tar
re3-b5fba778c4a307f0a5721c9b3b0efb38be96634b.tar.gz
re3-b5fba778c4a307f0a5721c9b3b0efb38be96634b.tar.bz2
re3-b5fba778c4a307f0a5721c9b3b0efb38be96634b.tar.lz
re3-b5fba778c4a307f0a5721c9b3b0efb38be96634b.tar.xz
re3-b5fba778c4a307f0a5721c9b3b0efb38be96634b.tar.zst
re3-b5fba778c4a307f0a5721c9b3b0efb38be96634b.zip
Diffstat (limited to '')
-rw-r--r--src/FileLoader.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/FileLoader.h b/src/FileLoader.h
new file mode 100644
index 00000000..0aad884d
--- /dev/null
+++ b/src/FileLoader.h
@@ -0,0 +1,34 @@
+#pragma once
+
+class CFileLoader
+{
+ static char ms_line[256];
+public:
+ static void LoadLevel(const char *filename);
+ static void LoadCollisionFromDatFile(int currlevel);
+ static char *LoadLine(int fd);
+ static RwTexDictionary *LoadTexDictionary(const char *filename);
+ static void LoadCollisionFile(const char *filename);
+ static void LoadCollisionModel(uint8 *buf, CColModel &model, char *name);
+ 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);
+ static void LoadObject(const char *line);
+ static void LoadTimeObject(const char *line);
+ static void LoadClumpObject(const char *line);
+ static void LoadVehicleObject(const char *line);
+ static void LoadPedObject(const char *line);
+ static int LoadPathHeader(const char *line, char *type);
+ static void LoadPedPathNode(const char *line, int id, int node);
+ static void LoadCarPathNode(const char *line, int id, int node);
+ static void Load2dEffect(const char *line);
+};