Skip to content

Commit 80aec0e

Browse files
committed
added IFP function prototypes and a map container for retrieving IFP pointer by custom IFP block name
1 parent c1d7814 commit 80aec0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Client/mods/deathmatch/logic/CClientGame.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,10 @@ class CClientGame
586586
void SetFileCacheRoot ( void );
587587
const char* GetFileCacheRoot ( void ) { return m_strFileCacheRoot; }
588588

589+
void InsertIFPPointerToMap ( SString strBlockName, CClientIFP * pIFP );
590+
void RemoveIFPPointerFromMap ( SString strBlockName );
591+
CClientIFP * GetIFPPointerFromMap ( SString strBlockName );
592+
589593
private:
590594
eStatus m_Status;
591595
eServerType m_ServerType;
@@ -798,6 +802,9 @@ class CClientGame
798802
SString m_strFileCacheRoot;
799803

800804
SharedUtil::CAsyncTaskScheduler* m_pAsyncTaskScheduler;
805+
806+
// (SString) Key is custom block name that is supplied to engineLoadIFP
807+
std::map < SString, CClientIFP * > m_mapOfIfpPointers;
801808
};
802809

803810
extern CClientGame* g_pClientGame;

0 commit comments

Comments
 (0)