summaryrefslogtreecommitdiffstats
path: root/src/Streaming.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-06-22 02:56:46 +0200
committereray orçunus <erayorcunus@gmail.com>2019-06-22 02:56:46 +0200
commit5ee579daa28b9b1d4036f041e7650755484d79fc (patch)
tree8aa93221bd0baa39340f69796d88efcaf24033f7 /src/Streaming.h
parentShotgun fix, CPed, CWeaponInfo (diff)
parentMerge pull request #28 from gennariarmando/master (diff)
downloadre3-5ee579daa28b9b1d4036f041e7650755484d79fc.tar
re3-5ee579daa28b9b1d4036f041e7650755484d79fc.tar.gz
re3-5ee579daa28b9b1d4036f041e7650755484d79fc.tar.bz2
re3-5ee579daa28b9b1d4036f041e7650755484d79fc.tar.lz
re3-5ee579daa28b9b1d4036f041e7650755484d79fc.tar.xz
re3-5ee579daa28b9b1d4036f041e7650755484d79fc.tar.zst
re3-5ee579daa28b9b1d4036f041e7650755484d79fc.zip
Diffstat (limited to 'src/Streaming.h')
-rw-r--r--src/Streaming.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/Streaming.h b/src/Streaming.h
index f31faf9c..ef51f54a 100644
--- a/src/Streaming.h
+++ b/src/Streaming.h
@@ -13,6 +13,9 @@ enum StreamFlags
STREAMFLAGS_DEPENDENCY = 0x04,
STREAMFLAGS_PRIORITY = 0x08,
STREAMFLAGS_NOFADE = 0x10,
+
+ STREAMFLAGS_NOT_IN_LIST = STREAMFLAGS_DONT_REMOVE|STREAMFLAGS_SCRIPTOWNED,
+ STREAMFLAGS_KEEP_IN_MEMORY = STREAMFLAGS_DONT_REMOVE|STREAMFLAGS_SCRIPTOWNED|STREAMFLAGS_DEPENDENCY,
};
enum StreamLoadState
@@ -21,7 +24,7 @@ enum StreamLoadState
STREAMSTATE_LOADED = 1,
STREAMSTATE_INQUEUE = 2,
STREAMSTATE_READING = 3, // what is this?
- STREAMSTATE_BIGFILE = 4,
+ STREAMSTATE_STARTED = 4, // first part read
};
enum ChannelState
@@ -96,10 +99,21 @@ public:
static void Init(void);
static void Shutdown(void);
static void LoadCdDirectory(void);
- static void LoadCdDirectory(const char *dirname, int n);
-
- static void RemoveModel(int32 id);
+ static void LoadCdDirectory(const char *dirname, int32 n);
+ static bool ConvertBufferToObject(int8 *buf, int32 streamId);
+ static bool FinishLoadingLargeFile(int8 *buf, int32 streamId);
static void RequestModel(int32 model, int32 flags);
+ static void RequestTxd(int32 txd, int32 flags) { RequestModel(txd + STREAM_OFFSET_TXD, flags); }
+ static void RequestSubway(void);
+ static void RequestBigBuildings(eLevelName level);
+ static void RequestIslands(eLevelName level);
+ static void RequestSpecialModel(int32 modelId, const char *modelName, int32 flags);
+ static void RequestSpecialChar(int32 charId, const char *modelName, int32 flags);
+ static void RemoveModel(int32 id);
+
+ static bool IsTxdUsedByRequestedModels(int32 txdId);
+ static bool AddToLoadedVehiclesList(int32 modelId);
+
static void MakeSpaceFor(int32 size);
static void ImGonnaUseStreamingMemory(void);
static void IHaveUsedStreamingMemory(void);