Add GetPlayerInfo and GetPlayerForUserID to IVEngineClient.

* Move CRC32_t typedef from CUserCmd.h to PlayerInfo.h.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe
2016-12-19 20:49:14 +00:00
parent e8e7f1d4ae
commit fd60cdc93b
4 changed files with 29 additions and 2 deletions

View File

@@ -6,6 +6,14 @@ class IVEngineClient {
return GetVirtualFunction<void(*)(IVEngineClient*, int&, int&)>(this, 5)(this, width, height);
}
bool GetPlayerInfo(int index, player_info_t* infoptr) {
return GetVirtualFunction<bool(*)(IVEngineClient*, int, player_info_t*)>(this, 8)(this, index, infoptr);
}
int GetPlayerForUserID(int userid) {
return GetVirtualFunction<int(*)(IVEngineClient*, int)>(this, 9)(this, userid);
}
bool Con_IsVisible() {
return GetVirtualFunction<bool(*)(IVEngineClient*)>(this, 11)(this);
}