Descent3/netgames/dmfc/dmfcinterface.cpp

2112 lines
67 KiB
C++
Raw Normal View History

2024-04-16 03:43:29 +00:00
/*
2024-04-16 18:56:40 +00:00
* $Logfile: /DescentIII/Main/Dmfc/dmfcinterface.cpp $
* $Revision: 1.1.1.1 $
* $Date: 2003/08/26 03:57:20 $
* $Author: kevinb $
*
* DMFC COM Interface functions
*
* $Log: dmfcinterface.cpp,v $
* Revision 1.1.1.1 2003/08/26 03:57:20 kevinb
* initial 1.5 import
*
*
2024-04-16 03:43:29 +00:00
* 10 8/15/99 4:36p Jeff
* finished exporting all inventory class functions. export object_info
* array. added check for -nooutragelogo to display Outrage logo display.
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 9 8/11/99 1:46p Jeff
* interface functions
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 8 7/13/99 5:45p Jeff
* fixed for Windows compile
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 7 7/13/99 5:39p Jeff
* changes for Linux compile
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 6 7/09/99 2:53p Jeff
* handle gametime better (pause it when needed) if the server is 'waiting
* for players'
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 5 7/08/99 9:55p Jeff
* added event handler for weapon fired event
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 4 7/07/99 5:00p Jeff
* removed vararg functions from interface functions, just made different
* versions of them
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 3 7/07/99 12:16p Jeff
* all mangles symbol names fixed. Finished making interface functions.
2024-04-16 18:56:40 +00:00
*
2024-04-16 03:43:29 +00:00
* 2 7/06/99 7:37p Jeff
* added IDMFC 1.0 interface functions
2024-04-16 18:56:40 +00:00
*
* $NoKeywords: $
*/
2024-04-16 03:43:29 +00:00
#include "gamedll_header.h"
#include "DMFC.h"
#include "dmfcinternal.h"
#include "dmfcinputcommands.h"
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
/*
***********************************************************
IDMFC 1.0 COM Interface Functions
***********************************************************
*/
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Delete(IDMFC *instance) {
assert(instance != NULL);
instance->Delete();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALLPTR IDMFC_Dynamic_Cast(IDMFC *instance, const char *pszType) {
assert(instance != NULL);
return instance->Dynamic_Cast(pszType);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DuplicatePointer(IDMFC *instance) {
assert(instance != NULL);
instance->DuplicatePointer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DestroyPointer(IDMFC *instance) {
assert(instance != NULL);
instance->DestroyPointer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_LoadFunctions(IDMFC *instance, int *api_func) {
assert(instance != NULL);
instance->LoadFunctions(api_func);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GameInit(IDMFC *instance, int teams) {
assert(instance != NULL);
instance->GameInit(teams);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GameClose(IDMFC *instance) {
assert(instance != NULL);
instance->GameClose();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerPlayerKilled(IDMFC *instance, object *killer_obj, int victim_pnum) {
assert(instance != NULL);
instance->OnServerPlayerKilled(killer_obj, victim_pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerPlayerExploded(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnServerPlayerExploded(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerCollide(IDMFC *instance, object *me_obj, object *it_obj) {
assert(instance != NULL);
instance->OnServerCollide(me_obj, it_obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerCollideComplex(IDMFC *instance, object *me_obj, object *it_obj, vector *point,
vector *normal) {
assert(instance != NULL);
instance->OnServerCollide(me_obj, it_obj, point, normal);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerPlayerChangeSegment(IDMFC *instance, int player_num, int newseg, int oldseg) {
assert(instance != NULL);
instance->OnServerPlayerChangeSegment(player_num, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerObjectChangeSegment(IDMFC *instance, object *obj, int newseg, int oldseg) {
assert(instance != NULL);
instance->OnServerObjectChangeSegment(obj, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerPlayerEntersGame(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnServerPlayerEntersGame(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerPlayerDisconnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnServerPlayerDisconnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerGameCreated(IDMFC *instance) {
assert(instance != NULL);
instance->OnServerGameCreated();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerLevelChange(IDMFC *instance) {
assert(instance != NULL);
instance->OnServerLevelChange();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerLevelStart(IDMFC *instance) {
assert(instance != NULL);
instance->OnServerLevelStart();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerLevelEnd(IDMFC *instance) {
assert(instance != NULL);
instance->OnServerLevelEnd();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerObjectShieldsChanged(IDMFC *instance, object *obj, float amount) {
assert(instance != NULL);
instance->OnServerObjectShieldsChanged(obj, amount);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_OnServerIsAddressBanned(IDMFC *instance, network_address *addr, char *tracker_id) {
assert(instance != NULL);
return instance->OnServerIsAddressBanned(addr, tracker_id);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerWallCollide(IDMFC *instance, object *obj, float hitspeed, int hitseg, int hitwall,
vector *hitpt, vector *wall_normal, float hit_dot) {
assert(instance != NULL);
instance->OnServerWallCollide(obj, hitspeed, hitseg, hitwall, hitpt, wall_normal, hit_dot);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerObjectKilled(IDMFC *instance, object *obj, object *killer) {
assert(instance != NULL);
instance->OnServerObjectKilled(obj, killer);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnServerObjectDestroyed(IDMFC *instance, object *obj) {
assert(instance != NULL);
instance->OnServerObjectDestroyed(obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientPlayerKilled(IDMFC *instance, object *killer_obj, int victim_pnum) {
assert(instance != NULL);
instance->OnClientPlayerKilled(killer_obj, victim_pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientPlayerExploded(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnClientPlayerExploded(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientCollide(IDMFC *instance, object *me_obj, object *it_obj) {
assert(instance != NULL);
instance->OnClientCollide(me_obj, it_obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientCollideComplex(IDMFC *instance, object *me_obj, object *it_obj, vector *point,
vector *normal) {
assert(instance != NULL);
instance->OnClientCollide(me_obj, it_obj, point, normal);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientPlayerChangeSegment(IDMFC *instance, int player_num, int newseg, int oldseg) {
assert(instance != NULL);
instance->OnClientPlayerChangeSegment(player_num, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientObjectChangeSegment(IDMFC *instance, object *obj, int newseg, int oldseg) {
assert(instance != NULL);
instance->OnClientObjectChangeSegment(obj, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientPlayerEntersGame(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnClientPlayerEntersGame(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientPlayerDisconnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnClientPlayerDisconnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnMeDisconnectFromServer(IDMFC *instance) {
assert(instance != NULL);
instance->OnMeDisconnectFromServer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientGameCreated(IDMFC *instance) {
assert(instance != NULL);
instance->OnClientGameCreated();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientObjectShieldsChanged(IDMFC *instance, object *obj, float amount) {
assert(instance != NULL);
instance->OnClientObjectShieldsChanged(obj, amount);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnWeaponFired(IDMFC *instance, object *weapon_obj, object *shooter) {
assert(instance != NULL);
instance->OnWeaponFired(weapon_obj, shooter);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientLevelChange(IDMFC *instance) {
assert(instance != NULL);
instance->OnClientLevelChange();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientLevelStart(IDMFC *instance) {
assert(instance != NULL);
instance->OnClientLevelStart();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientLevelEnd(IDMFC *instance) {
assert(instance != NULL);
instance->OnClientLevelEnd();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientWallCollide(IDMFC *instance, object *obj, float hitspeed, int hitseg, int hitwall,
vector *hitpt, vector *wall_normal, float hit_dot) {
assert(instance != NULL);
instance->OnClientWallCollide(obj, hitspeed, hitseg, hitwall, hitpt, wall_normal, hit_dot);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientObjectKilled(IDMFC *instance, object *obj, object *killer) {
assert(instance != NULL);
instance->OnClientObjectKilled(obj, killer);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientObjectDestroyed(IDMFC *instance, object *obj) {
assert(instance != NULL);
instance->OnClientObjectDestroyed(obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPlayerEntersObserver(IDMFC *instance, int pnum, object *piggy) {
assert(instance != NULL);
instance->OnPlayerEntersObserver(pnum, piggy);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPlayerExitsObserver(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->OnPlayerExitsObserver(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_OnCanChangeTeam(IDMFC *instance, int pnum, int newteam) {
assert(instance != NULL);
return instance->OnCanChangeTeam(pnum, newteam);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnSpecialPacket(IDMFC *instance) {
assert(instance != NULL);
instance->OnSpecialPacket();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnInterval(IDMFC *instance) {
assert(instance != NULL);
instance->OnInterval();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnHUDInterval(IDMFC *instance) {
assert(instance != NULL);
instance->OnHUDInterval();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPLRInterval(IDMFC *instance) {
assert(instance != NULL);
instance->OnPLRInterval();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPLRInit(IDMFC *instance) {
assert(instance != NULL);
instance->OnPLRInit();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnKeypress(IDMFC *instance, int key) {
assert(instance != NULL);
instance->OnKeypress(key);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnInputString(IDMFC *instance, char *input_string) {
assert(instance != NULL);
instance->OnInputString(input_string);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPlayerChangeTeam(IDMFC *instance, int player_num, int newteam, bool announce,
bool spew_everything) {
assert(instance != NULL);
instance->OnPlayerChangeTeam(player_num, newteam, announce, spew_everything);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnGameStateRequest(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->OnGameStateRequest(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnSaveStatsToFile(IDMFC *instance) {
assert(instance != NULL);
instance->OnSaveStatsToFile();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPlayerReconnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnPlayerReconnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPlayerConnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->OnPlayerConnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnControlMessage(IDMFC *instance, ubyte msg, int from_pnum) {
assert(instance != NULL);
instance->OnControlMessage(msg, from_pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_OnAllowObserverChange(IDMFC *instance, bool turnonobserver) {
assert(instance != NULL);
return instance->OnAllowObserverChange(turnonobserver);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnClientShowUI(IDMFC *instance, int id, void *user_data) {
assert(instance != NULL);
instance->OnClientShowUI(id, user_data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPrintScores(IDMFC *instance, int level) {
assert(instance != NULL);
instance->OnPrintScores(level);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnDisconnectSaveStatsToFile(IDMFC *instance) {
assert(instance != NULL);
instance->OnDisconnectSaveStatsToFile();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnLevelEndSaveStatsToFile(IDMFC *instance) {
assert(instance != NULL);
instance->OnLevelEndSaveStatsToFile();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
ddgr_color DLLFUNCCALL IDMFC_OnGetHudCallSignColor(IDMFC *instance, int playernum) {
assert(instance != NULL);
return instance->OnGetHudCallSignColor(playernum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_TranslateEvent(IDMFC *instance, int eventnum, dllinfo *data) {
assert(instance != NULL);
instance->TranslateEvent(eventnum, data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnTeamChangeName(IDMFC *instance, int team, char *oldname, char *newname) {
assert(instance != NULL);
instance->OnTeamChangeName(team, oldname, newname);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnDoControls(IDMFC *instance, game_controls *controls) {
assert(instance != NULL);
instance->OnDoControls(controls);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_OnPlayAudioTaunt(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->OnPlayAudioTaunt(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DrawMenu(IDMFC *instance) {
assert(instance != NULL);
instance->DrawMenu();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DisplayPlayerInfo(IDMFC *instance, int background_bmp, bool dedicated_server) {
assert(instance != NULL);
instance->DisplayPlayerInfo(background_bmp, dedicated_server);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SwitchPlayerInfoDisplay(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->SwitchPlayerInfoDisplay(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_DisplayingPlayerInfo(IDMFC *instance) {
assert(instance != NULL);
return instance->DisplayingPlayerInfo();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetTeamFromString(IDMFC *instance, char *str) {
assert(instance != NULL);
return instance->GetTeamFromString(str);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetPlayerNum(IDMFC *instance) {
assert(instance != NULL);
return instance->GetPlayerNum();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetLocalRole(IDMFC *instance) {
assert(instance != NULL);
return instance->GetLocalRole();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_CheckPlayerNum(IDMFC *instance, int player_num) {
assert(instance != NULL);
return instance->CheckPlayerNum(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_PacketCheckPlayerNum(IDMFC *instance, int player_num) {
assert(instance != NULL);
return instance->PacketCheckPlayerNum(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallClientEvent(IDMFC *instance, int event, int me_objnum, int it_objnum, int destination,
bool parms) {
assert(instance != NULL);
instance->CallClientEvent(event, me_objnum, it_objnum, destination, parms);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_GetTimeLeft(IDMFC *instance, float *time) {
assert(instance != NULL);
return instance->GetTimeLeft(time);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EndLevel(IDMFC *instance) {
assert(instance != NULL);
instance->EndLevel();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_WarpToLevel(IDMFC *instance, int lev) {
assert(instance != NULL);
instance->WarpToLevel(lev);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_GetScoreLimit(IDMFC *instance, int *limit) {
assert(instance != NULL);
return instance->GetScoreLimit(limit);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AutoTimeLimit(IDMFC *instance, bool turnon) {
assert(instance != NULL);
instance->AutoTimeLimit(turnon);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AutoDeathMessage(IDMFC *instance, bool turnon) {
assert(instance != NULL);
instance->AutoDeathMessage(turnon);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AddDeathMessage(IDMFC *instance, char *string, bool victim_first) {
assert(instance != NULL);
instance->AddDeathMessage(string, victim_first);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AddSuicideMessage(IDMFC *instance, char *string) {
assert(instance != NULL);
instance->AddSuicideMessage(string);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DoRandomDeathMessage(IDMFC *instance, int killernum, int victimnum, uint hash) {
assert(instance != NULL);
instance->DoRandomDeathMessage(killernum, victimnum, hash);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetItObjNum(IDMFC *instance) {
assert(instance != NULL);
return instance->GetItObjNum();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetMeObjNum(IDMFC *instance) {
assert(instance != NULL);
return instance->GetMeObjNum();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_RegisterPacketReceiver(IDMFC *instance, ubyte id, void (*func)(ubyte *)) {
assert(instance != NULL);
instance->RegisterPacketReceiver(id, func);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_StartPacket(IDMFC *instance, ubyte *data, ubyte id, int *count) {
assert(instance != NULL);
instance->StartPacket(data, id, count);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SendPacket(IDMFC *instance, ubyte *data, int size, int destination) {
assert(instance != NULL);
instance->SendPacket(data, size, destination);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetTeamForNewPlayer(IDMFC *instance, int player_num, int num_teams) {
assert(instance != NULL);
return instance->GetTeamForNewPlayer(player_num, num_teams);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SetNumberOfTeams(IDMFC *instance, int teams) {
assert(instance != NULL);
instance->SetNumberOfTeams(teams);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AutoTeamSelect(IDMFC *instance, bool turnon) {
assert(instance != NULL);
instance->AutoTeamSelect(turnon);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SendTeamAssignment(IDMFC *instance, int playernum, int team, bool spew_on_respawn) {
assert(instance != NULL);
instance->SendTeamAssignment(playernum, team, spew_on_respawn);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GetTeamAssignmentPacket(IDMFC *instance, ubyte *data) {
assert(instance != NULL);
instance->GetTeamAssignmentPacket(data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GetChangeTeamPacket(IDMFC *instance, ubyte *data) {
assert(instance != NULL);
instance->GetChangeTeamPacket(data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GetGameStateRequest(IDMFC *instance, ubyte *data) {
assert(instance != NULL);
instance->GetGameStateRequest(data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SendChangeTeamRequest(IDMFC *instance, int newteam, bool spew_onchange) {
assert(instance != NULL);
instance->SendChangeTeamRequest(newteam, spew_onchange);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GetDMFCGameInfo(IDMFC *instance, ubyte *data) {
assert(instance != NULL);
instance->GetDMFCGameInfo(data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SendDMFCGameInfo(IDMFC *instance, int player) {
assert(instance != NULL);
instance->SendDMFCGameInfo(player);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_RequestTeamChange(IDMFC *instance, int team, int pnum, bool spew_on_respawn) {
assert(instance != NULL);
instance->RequestTeamChange(team, pnum, spew_on_respawn);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_RequestGameState(IDMFC *instance) {
assert(instance != NULL);
instance->RequestGameState();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AddHUDItemCallback(IDMFC *instance, int type, void (*func)(struct tHUDItem *)) {
assert(instance != NULL);
instance->AddHUDItemCallback(type, func);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetMyTeam(IDMFC *instance) {
assert(instance != NULL);
return instance->GetMyTeam();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
char DLLFUNCCALLPTR IDMFC_GetTeamString(IDMFC *instance, int team) {
assert(instance != NULL);
return (char *)instance->GetTeamString(team);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
ddgr_color DLLFUNCCALL IDMFC_GetTeamColor(IDMFC *instance, int team) {
assert(instance != NULL);
return instance->GetTeamColor(team);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetNumTeams(IDMFC *instance) {
assert(instance != NULL);
return instance->GetNumTeams();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_AllowTeamChange(IDMFC *instance) {
assert(instance != NULL);
return instance->AllowTeamChange();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SwitchAllowTeamChange(IDMFC *instance, bool turnon) {
assert(instance != NULL);
instance->SwitchAllowTeamChange(turnon);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GetSortedPlayerSlots(IDMFC *instance, int *sortedindex, int maxsize) {
assert(instance != NULL);
instance->GetSortedPlayerSlots(sortedindex, maxsize);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GetSortedPlayerSlotsByEfficiency(IDMFC *instance, int *sortedindex, int maxsize) {
assert(instance != NULL);
instance->GetSortedPlayerSlotsByEfficiency(sortedindex, maxsize);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsMenuUp(IDMFC *instance) {
assert(instance != NULL);
return instance->IsMenuUp();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_ConvertHUDAlphaFloat(IDMFC *instance, float normal) {
assert(instance != NULL);
return instance->ConvertHUDAlpha(normal);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
ubyte DLLFUNCCALL IDMFC_ConvertHUDAlphaByte(IDMFC *instance, ubyte normal) {
assert(instance != NULL);
return instance->ConvertHUDAlpha(normal);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_ClipString(IDMFC *instance, int width, char *string, bool arrow) {
assert(instance != NULL);
instance->ClipString(width, string, arrow);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DisplayOutrageLogo(IDMFC *instance) {
assert(instance != NULL);
instance->DisplayOutrageLogo();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_KillAllTimers(IDMFC *instance) {
assert(instance != NULL);
instance->KillAllTimers();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_SetTimerInterval(IDMFC *instance, void (*func)(void), float intval, float longevity,
void (*onkill)(void)) {
assert(instance != NULL);
return instance->SetTimerInterval(func, intval, longevity, onkill);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_KillTimer(IDMFC *instance, int handle) {
assert(instance != NULL);
instance->KillTimer(handle);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SwitchShowHudCallsignLevel(IDMFC *instance, ubyte level, bool announce) {
assert(instance != NULL);
instance->SwitchShowHudCallsignLevel(level, announce);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SwitchServerHudCallsignLevel(IDMFC *instance, ubyte level) {
assert(instance != NULL);
instance->SwitchServerHudCallsignLevel(level);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetCounterMeasureOwner(IDMFC *instance, object *robot) {
assert(instance != NULL);
return instance->GetCounterMeasureOwner(robot);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_CFGOpen(IDMFC *instance, char *filename) {
assert(instance != NULL);
return instance->CFGOpen(filename);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CFGClose(IDMFC *instance) {
assert(instance != NULL);
instance->CFGClose();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_CFGFlush(IDMFC *instance) {
assert(instance != NULL);
return instance->CFGFlush();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_CFGCreateKey(IDMFC *instance, char *name) {
assert(instance != NULL);
return instance->CFGCreateKey(name);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_CFGLookupKey(IDMFC *instance, char *name) {
assert(instance != NULL);
return instance->CFGLookupKey(name);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_CFGLookupRecord(IDMFC *instance, char *record, void *data) {
assert(instance != NULL);
return instance->CFGLookupRecord(record, data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_CFGCreateRecord(IDMFC *instance, char *name, char type, void *data) {
assert(instance != NULL);
return instance->CFGCreateRecord(name, type, data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DecryptData(IDMFC *instance, ubyte *data, int size) {
assert(instance != NULL);
instance->DecryptData(data, size);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EncryptData(IDMFC *instance, ubyte *data, int size) {
assert(instance != NULL);
instance->EncryptData(data, size);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_VersionCheck(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->VersionCheck(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_UpdatePInfo(IDMFC *instance, int victim, int killer, int amount) {
assert(instance != NULL);
instance->UpdatePInfo(victim, killer, amount);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_ResetPInfo(IDMFC *instance) {
assert(instance != NULL);
instance->ResetPInfo();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_WriteDMFCStatsToFile(IDMFC *instance, CFILE *file) {
assert(instance != NULL);
instance->WriteDMFCStatsToFile(file);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_SetWeaponDeathMessage(IDMFC *instance, char *weapon_name, char *message, bool victim_first) {
assert(instance != NULL);
return instance->SetWeaponDeathMessage(weapon_name, message, victim_first);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
char DLLFUNCCALLPTR IDMFC_GetWeaponDeathMessage(IDMFC *instance, int index, bool *victim_first) {
assert(instance != NULL);
return instance->GetWeaponDeathMessage(index, victim_first);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AddWeaponHash(IDMFC *instance, char *parent, int count, char **array) {
assert(instance != NULL);
instance->AddWeaponHashArray(parent, count, array);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_SetupPlayerRecord(IDMFC *instance, int sizeof_individual_data,
int (*pack_callback)(void *user_info, ubyte *data),
int (*unpack_callback)(void *user_info, ubyte *data)) {
assert(instance != NULL);
return instance->SetupPlayerRecord(sizeof_individual_data, pack_callback, unpack_callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALLPTR IDMFC_GetPlayerRecordData(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->GetPlayerRecordData(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
player_record DLLFUNCCALLPTR IDMFC_GetPlayerRecord(IDMFC *instance, int slot) {
assert(instance != NULL);
return instance->GetPlayerRecord(slot);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
player_record DLLFUNCCALLPTR IDMFC_GetPlayerRecordByPnum(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->GetPlayerRecordByPnum(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SendRequestForPlayerRecords(IDMFC *instance) {
assert(instance != NULL);
instance->SendRequestForPlayerRecords();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_ReceiveRequestForPlayerRecords(IDMFC *instance, ubyte *data) {
assert(instance != NULL);
instance->ReceiveRequestForPlayerRecords(data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsPlayerBanned(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->IsPlayerBanned(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsAddressBanned(IDMFC *instance, network_address *addr, char *tracker_id) {
assert(instance != NULL);
return instance->IsAddressBanned(addr, tracker_id);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_RemoveAllBans(IDMFC *instance) {
assert(instance != NULL);
instance->RemoveAllBans();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_RemoveBan(IDMFC *instance, int index) {
assert(instance != NULL);
return instance->RemoveBan(index);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
char DLLFUNCCALLPTR IDMFC_GetBannedPlayerCallsign(IDMFC *instance, int index) {
assert(instance != NULL);
return instance->GetBannedPlayerCallsign(index);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetNumBannedPlayers(IDMFC *instance) {
assert(instance != NULL);
return instance->GetNumBannedPlayers();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_BanPlayerFromGame(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->BanPlayerFromGame(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsPlayerAlive(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->IsPlayerAlive(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SendControlMessageToPlayer(IDMFC *instance, int pnum, ubyte msg) {
assert(instance != NULL);
instance->SendControlMessageToPlayer(pnum, msg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_ReceiveControlMessage(IDMFC *instance, ubyte *data) {
assert(instance != NULL);
instance->ReceiveControlMessage(data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_FindPInfoStatFirst(IDMFC *instance, int slot, tPInfoStat *stat) {
assert(instance != NULL);
return instance->FindPInfoStatFirst(slot, stat);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_FindPInfoStatNext(IDMFC *instance, tPInfoStat *stat) {
assert(instance != NULL);
return instance->FindPInfoStatNext(stat);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_FindPInfoStatClose(IDMFC *instance) {
assert(instance != NULL);
instance->FindPInfoStatClose();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DoDamageToPlayer(IDMFC *instance, int pnum, int type, float amount, bool playsound) {
assert(instance != NULL);
instance->DoDamageToPlayer(pnum, type, amount, playsound);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_StartUIWindow(IDMFC *instance, int id, void *user_data) {
assert(instance != NULL);
instance->StartUIWindow(id, user_data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DisconnectMe(IDMFC *instance) {
assert(instance != NULL);
instance->DisconnectMe();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
signed char DLLFUNCCALL IDMFC_AddInputCommand(IDMFC *instance, char *command, char *description,
void (*handler)(char *)) {
assert(instance != NULL);
return instance->AddInputCommand(command, description, handler);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CheckPInfo(IDMFC *instance) {
assert(instance != NULL);
instance->CheckPInfo();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EnableStatisticalMessages(IDMFC *instance, bool on) {
assert(instance != NULL);
instance->EnableStatisticalMessages(on);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EnableOnScreenMenu(IDMFC *instance, bool turn_on) {
assert(instance != NULL);
instance->EnableOnScreenMenu(turn_on);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EnableAutoSaveLevelEnd(IDMFC *instance, bool enable) {
assert(instance != NULL);
instance->EnableAutoSaveLevelEnd(enable);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EnableAutoSaveDisconnect(IDMFC *instance, bool enable) {
assert(instance != NULL);
instance->EnableAutoSaveDisconnect(enable);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GenerateStatFilename(IDMFC *instance, char *filename, char *root, bool end_of_level) {
assert(instance != NULL);
instance->GenerateStatFilename(filename, root, end_of_level);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsPlayerObserver(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->IsPlayerObserver(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EnableOnScreenMenuBackground(IDMFC *instance, bool enable) {
assert(instance != NULL);
instance->EnableOnScreenMenuBackground(enable);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_GetTimeInGame(IDMFC *instance, int slot) {
assert(instance != NULL);
return instance->GetTimeInGame(slot);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
char DLLFUNCCALLPTR IDMFC_GetTimeString(IDMFC *instance, float sec) {
assert(instance != NULL);
return instance->GetTimeString(sec);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DisplayNetGameInfo(IDMFC *instance, int background_bmp, bool dedicated_server) {
assert(instance != NULL);
instance->DisplayNetGameInfo(background_bmp, dedicated_server);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SwitchNetGameInfoDisplay(IDMFC *instance, int on) {
assert(instance != NULL);
instance->SwitchNetGameInfoDisplay(on);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsDisplayingNetGameInfo(IDMFC *instance) {
assert(instance != NULL);
return instance->IsDisplayingNetGameInfo();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DatabaseRegister(IDMFC *instance, char *name) {
assert(instance != NULL);
instance->DatabaseRegister(name);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_DatabaseReadA(IDMFC *instance, const char *label, char *entry, int *entrylen) {
assert(instance != NULL);
return instance->DatabaseRead(label, entry, entrylen);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_DatabaseReadB(IDMFC *instance, const char *label, void *entry, int wordsize) {
assert(instance != NULL);
return instance->DatabaseRead(label, entry, wordsize);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_DatabaseReadC(IDMFC *instance, const char *label, bool *entry) {
assert(instance != NULL);
return instance->DatabaseRead(label, entry);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_DatabaseWriteA(IDMFC *instance, const char *label, const char *entry, int entrylen) {
assert(instance != NULL);
return instance->DatabaseWrite(label, entry, entrylen);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_DatabaseWriteB(IDMFC *instance, const char *label, int entry) {
assert(instance != NULL);
return instance->DatabaseWrite(label, entry);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SendNetGameInfoSync(IDMFC *instance, int to_who) {
assert(instance != NULL);
instance->SendNetGameInfoSync(to_who);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_CompareNetworkAddress(IDMFC *instance, network_address *one, network_address *two,
bool use_port) {
assert(instance != NULL);
return instance->CompareNetworkAddress(one, two, use_port);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsMasterTrackerGame(IDMFC *instance) {
assert(instance != NULL);
return instance->IsMasterTrackerGame();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_ConvertLocalToServerObjnum(IDMFC *instance, int objnum) {
assert(instance != NULL);
return instance->ConvertLocalToServerObjnum(objnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_ConvertServerToLocalObjnum(IDMFC *instance, int objnum) {
assert(instance != NULL);
return instance->ConvertServerToLocalObjnum(objnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_ShouldIDisplayHUDName(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->ShouldIDisplayHUDName(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SetDeathMessageFilter(IDMFC *instance, int level) {
assert(instance != NULL);
instance->SetDeathMessageFilter(level);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IAmDedicatedServer(IDMFC *instance) {
assert(instance != NULL);
return instance->IAmDedicatedServer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsPlayerDedicatedServerPnum(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->IsPlayerDedicatedServer(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_IsPlayerDedicatedServer(IDMFC *instance, player_record *pr) {
assert(instance != NULL);
return instance->IsPlayerDedicatedServer(pr);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_DisplayInputCommandHelp(IDMFC *instance, char *s) {
assert(instance != NULL);
instance->DisplayInputCommandHelp(s);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetPlayerTeam(IDMFC *instance, int pnum) {
assert(instance != NULL);
return instance->GetPlayerTeam(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_SetTeamName(IDMFC *instance, int team, char *name, bool announce) {
assert(instance != NULL);
return instance->SetTeamName(team, name, announce);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_ConvertHUDCoord(IDMFC *instance, int x, int y, int *rx, int *ry) {
assert(instance != NULL);
instance->ConvertHUDCoord(x, y, rx, ry);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetPlayerLogoBmp(IDMFC *instance, int player_num, bool *is_vclip) {
assert(instance != NULL);
return instance->GetPlayerLogoBmp(player_num, is_vclip);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EnableShipLogos(IDMFC *instance, bool enable) {
assert(instance != NULL);
instance->EnableShipLogos(enable);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_AreLogosEnabled(IDMFC *instance) {
assert(instance != NULL);
return instance->AreLogosEnabled();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_EnableAudioTaunts(IDMFC *instance, bool enable) {
assert(instance != NULL);
instance->EnableAudioTaunts(enable);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_AreTauntsEnabled(IDMFC *instance) {
assert(instance != NULL);
return instance->AreTauntsEnabled();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_RespawnPlayer(IDMFC *instance, int pnum, bool spew_energy_and_shield, bool spew_everything) {
assert(instance != NULL);
instance->RespawnPlayer(pnum, spew_energy_and_shield, spew_everything);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_ReadInHostsAllowDeny(IDMFC *instance) {
assert(instance != NULL);
instance->ReadInHostsAllowDeny();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_FreeHostsLists(IDMFC *instance) {
assert(instance != NULL);
instance->FreeHostsLists();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_RehashAllowDeny(IDMFC *instance) {
assert(instance != NULL);
instance->RehashAllowDeny();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_AnnounceTeamChangeDeny(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->AnnounceTeamChangeDeny(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SetMaxPlayerHardLimit(IDMFC *instance, int max) {
assert(instance != NULL);
instance->SetMaxPlayerHardLimit(max);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_WasPlayerInGameAtLevelEnd(IDMFC *instance, int prec) {
assert(instance != NULL);
return instance->WasPlayerInGameAtLevelEnd(prec);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerPlayerKilled(IDMFC *instance,
void (*callback)(object *killer_obj, int victim_pnum)) {
assert(instance != NULL);
instance->Set_OnServerPlayerKilled(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerPlayerExploded(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnServerPlayerExploded(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerCollideA(IDMFC *instance, void (*callback)(object *me_obj, object *it_obj)) {
assert(instance != NULL);
instance->Set_OnServerCollide(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerCollideB(IDMFC *instance, void (*callback)(object *me_obj, object *it_obj,
vector *point, vector *normal)) {
assert(instance != NULL);
instance->Set_OnServerCollide(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerPlayerChangeSegment(IDMFC *instance,
void (*callback)(int player_num, int newseg, int oldseg)) {
assert(instance != NULL);
instance->Set_OnServerPlayerChangeSegment(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerObjectChangeSegment(IDMFC *instance,
void (*callback)(object *obj, int newseg, int oldseg)) {
assert(instance != NULL);
instance->Set_OnServerObjectChangeSegment(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerPlayerEntersGame(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnServerPlayerEntersGame(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerPlayerDisconnect(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnServerPlayerDisconnect(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerGameCreated(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnServerGameCreated(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerLevelChange(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnServerLevelChange(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerLevelStart(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnServerLevelStart(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerLevelEnd(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnServerLevelEnd(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerObjectShieldsChanged(IDMFC *instance, void (*callback)(object *obj, float amount)) {
assert(instance != NULL);
instance->Set_OnServerObjectShieldsChanged(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerIsAddressBanned(IDMFC *instance,
bool (*callback)(network_address *addr, char *tracker_id)) {
assert(instance != NULL);
instance->Set_OnServerIsAddressBanned(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerWallCollide(IDMFC *instance,
void (*callback)(object *obj, float hitspeed, int hitseg, int hitwall,
vector *hitpt, vector *wall_normal, float hit_dot)) {
assert(instance != NULL);
instance->Set_OnServerWallCollide(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerObjectKilled(IDMFC *instance, void (*callback)(object *obj, object *killer)) {
assert(instance != NULL);
instance->Set_OnServerObjectKilled(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnServerObjectDestroyed(IDMFC *instance, void (*callback)(object *obj)) {
assert(instance != NULL);
instance->Set_OnServerObjectDestroyed(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientPlayerKilled(IDMFC *instance,
void (*callback)(object *killer_obj, int victim_pnum)) {
assert(instance != NULL);
instance->Set_OnClientPlayerKilled(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientPlayerExploded(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnClientPlayerExploded(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientCollideA(IDMFC *instance, void (*callback)(object *me_obj, object *it_obj)) {
assert(instance != NULL);
instance->Set_OnClientCollide(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientCollideB(IDMFC *instance, void (*callback)(object *me_obj, object *it_obj,
vector *point, vector *normal)) {
assert(instance != NULL);
instance->Set_OnClientCollide(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientPlayerChangeSegment(IDMFC *instance,
void (*callback)(int player_num, int newseg, int oldseg)) {
assert(instance != NULL);
instance->Set_OnClientPlayerChangeSegment(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientObjectChangeSegment(IDMFC *instance,
void (*callback)(object *obj, int newseg, int oldseg)) {
assert(instance != NULL);
instance->Set_OnClientObjectChangeSegment(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientPlayerEntersGame(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnClientPlayerEntersGame(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientPlayerDisconnect(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnClientPlayerDisconnect(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnMeDisconnectFromServer(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnMeDisconnectFromServer(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientGameCreated(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnClientGameCreated(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientObjectShieldsChanged(IDMFC *instance, void (*callback)(object *obj, float amount)) {
assert(instance != NULL);
instance->Set_OnClientObjectShieldsChanged(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnWeaponFired(IDMFC *instance, void (*callback)(object *weapon_obj, object *shooter)) {
assert(instance != NULL);
instance->Set_OnWeaponFired(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientLevelChange(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnClientLevelChange(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientLevelStart(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnClientLevelStart(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientLevelEnd(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnClientLevelEnd(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientWallCollide(IDMFC *instance,
void (*callback)(object *obj, float hitspeed, int hitseg, int hitwall,
vector *hitpt, vector *wall_normal, float hit_dot)) {
assert(instance != NULL);
instance->Set_OnClientWallCollide(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientObjectKilled(IDMFC *instance, void (*callback)(object *obj, object *killer)) {
assert(instance != NULL);
instance->Set_OnClientObjectKilled(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientObjectDestroyed(IDMFC *instance, void (*callback)(object *obj)) {
assert(instance != NULL);
instance->Set_OnClientObjectDestroyed(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPlayerEntersObserver(IDMFC *instance, void (*callback)(int pnum, object *piggy)) {
assert(instance != NULL);
instance->Set_OnPlayerEntersObserver(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPlayerExitsObserver(IDMFC *instance, void (*callback)(int pnum)) {
assert(instance != NULL);
instance->Set_OnPlayerExitsObserver(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnCanChangeTeam(IDMFC *instance, bool (*callback)(int pnum, int newteam)) {
assert(instance != NULL);
instance->Set_OnCanChangeTeam(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnSpecialPacket(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnSpecialPacket(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnInterval(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnInterval(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnHUDInterval(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnHUDInterval(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPLRInterval(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnPLRInterval(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPLRInit(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnPLRInit(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnKeypress(IDMFC *instance, void (*callback)(int key)) {
assert(instance != NULL);
instance->Set_OnKeypress(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnInputString(IDMFC *instance, void (*callback)(char *input_string)) {
assert(instance != NULL);
instance->Set_OnInputString(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPlayerChangeTeam(IDMFC *instance, void (*callback)(int player_num, int newteam,
bool announce, bool spew_everything)) {
assert(instance != NULL);
instance->Set_OnPlayerChangeTeam(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnGameStateRequest(IDMFC *instance, void (*callback)(int pnum)) {
assert(instance != NULL);
instance->Set_OnGameStateRequest(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnSaveStatsToFile(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnSaveStatsToFile(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPlayerReconnect(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnPlayerReconnect(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPlayerConnect(IDMFC *instance, void (*callback)(int player_num)) {
assert(instance != NULL);
instance->Set_OnPlayerConnect(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnControlMessage(IDMFC *instance, void (*callback)(ubyte msg, int from_pnum)) {
assert(instance != NULL);
instance->Set_OnControlMessage(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnAllowObserverChange(IDMFC *instance, bool (*callback)(bool turnonobserver)) {
assert(instance != NULL);
instance->Set_OnAllowObserverChange(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnClientShowUI(IDMFC *instance, void (*callback)(int id, void *user_data)) {
assert(instance != NULL);
instance->Set_OnClientShowUI(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPrintScores(IDMFC *instance, void (*callback)(int level)) {
assert(instance != NULL);
instance->Set_OnPrintScores(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnDisconnectSaveStatsToFile(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnDisconnectSaveStatsToFile(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnLevelEndSaveStatsToFile(IDMFC *instance, void (*callback)(void)) {
assert(instance != NULL);
instance->Set_OnLevelEndSaveStatsToFile(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnGetHudCallSignColor(IDMFC *instance, ddgr_color (*callback)(int playernum)) {
assert(instance != NULL);
instance->Set_OnGetHudCallSignColor(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnTeamChangeName(IDMFC *instance, void (*callback)(int team, char *oldname, char *newname)) {
assert(instance != NULL);
instance->Set_OnTeamChangeName(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnDoControls(IDMFC *instance, void (*callback)(game_controls *controls)) {
assert(instance != NULL);
instance->Set_OnDoControls(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_Set_OnPlayAudioTaunt(IDMFC *instance, void (*callback)(int pnum)) {
assert(instance != NULL);
instance->Set_OnPlayAudioTaunt(callback);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerPlayerKilled(IDMFC *instance, object *killer_obj, int victim_pnum) {
assert(instance != NULL);
instance->CallOnServerPlayerKilled(killer_obj, victim_pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerPlayerExploded(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnServerPlayerExploded(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerCollideA(IDMFC *instance, object *me_obj, object *it_obj) {
assert(instance != NULL);
instance->CallOnServerCollide(me_obj, it_obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerCollideB(IDMFC *instance, object *me_obj, object *it_obj, vector *point,
vector *normal) {
assert(instance != NULL);
instance->CallOnServerCollide(me_obj, it_obj, point, normal);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerPlayerChangeSegment(IDMFC *instance, int player_num, int newseg, int oldseg) {
assert(instance != NULL);
instance->CallOnServerPlayerChangeSegment(player_num, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerObjectChangeSegment(IDMFC *instance, object *obj, int newseg, int oldseg) {
assert(instance != NULL);
instance->CallOnServerObjectChangeSegment(obj, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerPlayerEntersGame(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnServerPlayerEntersGame(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerPlayerDisconnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnServerPlayerDisconnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerGameCreated(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnServerGameCreated();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerLevelChange(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnServerLevelChange();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerLevelStart(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnServerLevelStart();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerLevelEnd(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnServerLevelEnd();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerObjectShieldsChanged(IDMFC *instance, object *obj, float amount) {
assert(instance != NULL);
instance->CallOnServerObjectShieldsChanged(obj, amount);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_CallOnServerIsAddressBanned(IDMFC *instance, network_address *addr, char *tracker_id) {
assert(instance != NULL);
return instance->CallOnServerIsAddressBanned(addr, tracker_id);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerWallCollide(IDMFC *instance, object *obj, float hitspeed, int hitseg, int hitwall,
vector *hitpt, vector *wall_normal, float hit_dot) {
assert(instance != NULL);
instance->CallOnServerWallCollide(obj, hitspeed, hitseg, hitwall, hitpt, wall_normal, hit_dot);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerObjectKilled(IDMFC *instance, object *obj, object *killer) {
assert(instance != NULL);
instance->CallOnServerObjectKilled(obj, killer);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnServerObjectDestroyed(IDMFC *instance, object *obj) {
assert(instance != NULL);
instance->CallOnServerObjectDestroyed(obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientPlayerKilled(IDMFC *instance, object *killer_obj, int victim_pnum) {
assert(instance != NULL);
instance->CallOnClientPlayerKilled(killer_obj, victim_pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientPlayerExploded(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnClientPlayerExploded(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientCollideA(IDMFC *instance, object *me_obj, object *it_obj) {
assert(instance != NULL);
instance->CallOnClientCollide(me_obj, it_obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientCollideB(IDMFC *instance, object *me_obj, object *it_obj, vector *point,
vector *normal) {
assert(instance != NULL);
instance->CallOnClientCollide(me_obj, it_obj, point, normal);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientPlayerChangeSegment(IDMFC *instance, int player_num, int newseg, int oldseg) {
assert(instance != NULL);
instance->CallOnClientPlayerChangeSegment(player_num, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientObjectChangeSegment(IDMFC *instance, object *obj, int newseg, int oldseg) {
assert(instance != NULL);
instance->CallOnClientObjectChangeSegment(obj, newseg, oldseg);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientPlayerEntersGame(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnClientPlayerEntersGame(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientPlayerDisconnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnClientPlayerDisconnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnMeDisconnectFromServer(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnMeDisconnectFromServer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientGameCreated(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnClientGameCreated();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientObjectShieldsChanged(IDMFC *instance, object *obj, float amount) {
assert(instance != NULL);
instance->CallOnClientObjectShieldsChanged(obj, amount);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnWeaponFired(IDMFC *instance, object *weapon_obj, object *shooter) {
assert(instance != NULL);
instance->CallOnWeaponFired(weapon_obj, shooter);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientLevelChange(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnClientLevelChange();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientLevelStart(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnClientLevelStart();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientLevelEnd(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnClientLevelEnd();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientWallCollide(IDMFC *instance, object *obj, float hitspeed, int hitseg, int hitwall,
vector *hitpt, vector *wall_normal, float hit_dot) {
assert(instance != NULL);
instance->CallOnClientWallCollide(obj, hitspeed, hitseg, hitwall, hitpt, wall_normal, hit_dot);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientObjectKilled(IDMFC *instance, object *obj, object *killer) {
assert(instance != NULL);
instance->CallOnClientObjectKilled(obj, killer);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientObjectDestroyed(IDMFC *instance, object *obj) {
assert(instance != NULL);
instance->CallOnClientObjectDestroyed(obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPlayerEntersObserver(IDMFC *instance, int pnum, object *piggy) {
assert(instance != NULL);
instance->CallOnPlayerEntersObserver(pnum, piggy);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPlayerExitsObserver(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->CallOnPlayerExitsObserver(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_CallOnCanChangeTeam(IDMFC *instance, int pnum, int newteam) {
assert(instance != NULL);
return instance->CallOnCanChangeTeam(pnum, newteam);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnSpecialPacket(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnSpecialPacket();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnInterval(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnInterval();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnHUDInterval(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnHUDInterval();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPLRInterval(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnPLRInterval();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPLRInit(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnPLRInit();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnKeypress(IDMFC *instance, int key) {
assert(instance != NULL);
instance->CallOnKeypress(key);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnInputString(IDMFC *instance, char *input_string) {
assert(instance != NULL);
instance->CallOnInputString(input_string);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPlayerChangeTeam(IDMFC *instance, int player_num, int newteam, bool announce,
bool spew_everything) {
assert(instance != NULL);
instance->CallOnPlayerChangeTeam(player_num, newteam, announce, spew_everything);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnGameStateRequest(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->CallOnGameStateRequest(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnSaveStatsToFile(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnSaveStatsToFile();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPlayerReconnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnPlayerReconnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPlayerConnect(IDMFC *instance, int player_num) {
assert(instance != NULL);
instance->CallOnPlayerConnect(player_num);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnControlMessage(IDMFC *instance, ubyte msg, int from_pnum) {
assert(instance != NULL);
instance->CallOnControlMessage(msg, from_pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDMFC_CallOnAllowObserverChange(IDMFC *instance, bool turnonobserver) {
assert(instance != NULL);
return instance->CallOnAllowObserverChange(turnonobserver);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnClientShowUI(IDMFC *instance, int id, void *user_data) {
assert(instance != NULL);
instance->CallOnClientShowUI(id, user_data);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPrintScores(IDMFC *instance, int level) {
assert(instance != NULL);
instance->CallOnPrintScores(level);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnDisconnectSaveStatsToFile(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnDisconnectSaveStatsToFile();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnLevelEndSaveStatsToFile(IDMFC *instance) {
assert(instance != NULL);
instance->CallOnLevelEndSaveStatsToFile();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
ddgr_color DLLFUNCCALL IDMFC_CallOnGetHudCallSignColor(IDMFC *instance, int playernum) {
assert(instance != NULL);
return instance->CallOnGetHudCallSignColor(playernum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnTeamChangeName(IDMFC *instance, int team, char *oldname, char *newname) {
assert(instance != NULL);
instance->CallOnTeamChangeName(team, oldname, newname);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnDoControls(IDMFC *instance, game_controls *controls) {
assert(instance != NULL);
instance->CallOnDoControls(controls);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_CallOnPlayAudioTaunt(IDMFC *instance, int pnum) {
assert(instance != NULL);
instance->CallOnPlayAudioTaunt(pnum);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
dllinfo DLLFUNCCALLPTR IDMFC_GetDLLInfoCallData(IDMFC *instance) {
assert(instance != NULL);
return instance->GetDLLInfoCallData();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetHighestRoomIndex(IDMFC *instance) {
assert(instance != NULL);
return instance->GetHighestRoomIndex();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetGameWindowW(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGameWindowW();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetGameWindowH(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGameWindowH();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetGameWindowX(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGameWindowX();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetGameWindowY(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGameWindowY();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALLPTR IDMFC_GetGameFontTranslateArray(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGameFontTranslateArray();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetObserverModeBitmap(IDMFC *instance) {
assert(instance != NULL);
return instance->GetObserverModeBitmap();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_GetFrametime(IDMFC *instance) {
assert(instance != NULL);
return instance->GetFrametime();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_GetGametime(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGametime();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_GetRealGametime(IDMFC *instance, bool *ispaused) {
assert(instance != NULL);
return instance->GetRealGametime(ispaused);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALLPTR IDMFC_GetShieldDeltaArray(IDMFC *instance) {
assert(instance != NULL);
return instance->GetShieldDeltaArray();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_GetHudAspectX(IDMFC *instance) {
assert(instance != NULL);
return instance->GetHudAspectX();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_GetHudAspectY(IDMFC *instance) {
assert(instance != NULL);
return instance->GetHudAspectY();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
char DLLFUNCCALLPTR IDMFC_GetLocalD3Dir(IDMFC *instance) {
assert(instance != NULL);
return (char *)instance->GetLocalD3Dir();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
tMission DLLFUNCCALLPTR IDMFC_GetCurrentMission(IDMFC *instance) {
assert(instance != NULL);
return (tMission *)instance->GetCurrentMission();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
room DLLFUNCCALLPTR IDMFC_GetRooms(IDMFC *instance) {
assert(instance != NULL);
return instance->GetRooms();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
object DLLFUNCCALLPTR IDMFC_GetObjects(IDMFC *instance) {
assert(instance != NULL);
return instance->GetObjects();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
terrain_segment DLLFUNCCALLPTR IDMFC_GetTerrainSegs(IDMFC *instance) {
assert(instance != NULL);
return instance->GetTerrainSegs();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
netgame_info DLLFUNCCALLPTR IDMFC_GetNetgameInfo(IDMFC *instance) {
assert(instance != NULL);
return instance->GetNetgameInfo();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
player DLLFUNCCALLPTR IDMFC_GetPlayers(IDMFC *instance) {
assert(instance != NULL);
return instance->GetPlayers();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
netplayer DLLFUNCCALLPTR IDMFC_GetNetPlayers(IDMFC *instance) {
assert(instance != NULL);
return instance->GetNetPlayers();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
ship DLLFUNCCALLPTR IDMFC_GetShips(IDMFC *instance) {
assert(instance != NULL);
return instance->GetShips();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
weapon DLLFUNCCALLPTR IDMFC_GetWeapons(IDMFC *instance) {
assert(instance != NULL);
return instance->GetWeapons();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
texture DLLFUNCCALLPTR IDMFC_GetGameTextures(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGameTextures();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
poly_model DLLFUNCCALLPTR IDMFC_GetGamePolyModels(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGamePolyModels();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
vclip DLLFUNCCALLPTR IDMFC_GetGameVClips(IDMFC *instance) {
assert(instance != NULL);
return instance->GetGameVClips();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
ddgr_color DLLFUNCCALLPTR IDMFC_GetPlayerColors(IDMFC *instance) {
assert(instance != NULL);
return instance->GetPlayerColors();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
game_controls DLLFUNCCALL IDMFC_GetLastGameControls(IDMFC *instance) {
assert(instance != NULL);
return instance->GetLastGameControls();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALLPTR IDMFC_GetPilotPicBitmapHandles(IDMFC *instance) {
assert(instance != NULL);
return instance->GetPilotPicBitmapHandles();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_GetViewerObjectPtr(IDMFC *instance, object **v_obj) {
assert(instance != NULL);
instance->GetViewerObjectPtr(v_obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SetViewerObjectPtr(IDMFC *instance, object *v_obj) {
assert(instance != NULL);
instance->SetViewerObjectPtr(v_obj);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
float DLLFUNCCALL IDMFC_GetRenderZoom(IDMFC *instance) {
assert(instance != NULL);
return instance->GetRenderZoom();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
IMenuItem DLLFUNCCALLPTR IDMFC_GetOnScreenMenu(IDMFC *instance) {
assert(instance != NULL);
return instance->GetOnScreenMenu();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
tOSIRISModuleInit DLLFUNCCALLPTR IDMFC_GetOsirisModuleData(IDMFC *instance) {
assert(instance != NULL);
return instance->GetOsirisModuleData();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
vis_effect DLLFUNCCALLPTR IDMFC_GetVisEffectArray(IDMFC *instance, int **Highviseptr) {
assert(instance != NULL);
return instance->GetVisEffectArray(Highviseptr);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
level_info DLLFUNCCALLPTR IDMFC_GetLevelInfo(IDMFC *instance) {
assert(instance != NULL);
return instance->GetLevelInfo();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDMFC_SelectNextCameraView(IDMFC *instance, int window) {
assert(instance != NULL);
instance->SelectNextCameraView(window);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IDMFC_GetCameraViewType(IDMFC *instance, int window) {
assert(instance != NULL);
return instance->GetCameraViewType(window);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
object_info DLLFUNCCALLPTR IDMFC_GetObjectInfo(IDMFC *instance, int objinfo_id) {
assert(instance != NULL);
return instance->GetObjectInfo(objinfo_id);
2024-04-16 03:43:29 +00:00
}
/*
***********************************************************
IMenuItem 1.0 COM Interface Functions
***********************************************************
*/
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_Delete(IMenuItem *instance) {
assert(instance != NULL);
instance->Delete();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALLPTR IMenuItem_Dynamic_Cast(IMenuItem *instance, const char *pszType) {
assert(instance != NULL);
return instance->Dynamic_Cast(pszType);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_DuplicatePointer(IMenuItem *instance) {
assert(instance != NULL);
instance->DuplicatePointer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_DestroyPointer(IMenuItem *instance) {
assert(instance != NULL);
instance->DestroyPointer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_AddSubMenu(IMenuItem *instance, IMenuItem *p) {
assert(instance != NULL);
return instance->AddSubMenu(p);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_DetachSubMenu(IMenuItem *instance, IMenuItem *p) {
assert(instance != NULL);
return instance->DetachSubMenu(p);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_Forward(IMenuItem *instance) {
assert(instance != NULL);
return instance->Forward();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_Back(IMenuItem *instance) {
assert(instance != NULL);
return instance->Back();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_Up(IMenuItem *instance) {
assert(instance != NULL);
return instance->Up();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_Down(IMenuItem *instance) {
assert(instance != NULL);
return instance->Down();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_Execute(IMenuItem *instance) {
assert(instance != NULL);
instance->Execute();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_Draw(IMenuItem *instance, int x, int y, int height, int backgroundbmp, float *ratio) {
assert(instance != NULL);
instance->Draw(x, y, height, backgroundbmp, ratio);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_SetInputFocus(IMenuItem *instance) {
assert(instance != NULL);
instance->SetInputFocus();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_LoseInputFocus(IMenuItem *instance) {
assert(instance != NULL);
instance->LoseInputFocus();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_GetFocus(IMenuItem *instance) {
assert(instance != NULL);
return instance->GetFocus();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
char DLLFUNCCALLPTR IMenuItem_GetTitle(IMenuItem *instance) {
assert(instance != NULL);
return instance->GetTitle();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
int DLLFUNCCALL IMenuItem_GetCustomSubMenuCount(IMenuItem *instance) {
assert(instance != NULL);
return instance->GetCustomSubMenuCount();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_CallFunc(IMenuItem *instance, int value) {
assert(instance != NULL);
instance->CallFunc(value);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_HasSubMenus(IMenuItem *instance) {
assert(instance != NULL);
return instance->HasSubMenus();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
char DLLFUNCCALL IMenuItem_GetType(IMenuItem *instance) {
assert(instance != NULL);
return instance->GetType();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IMenuItem_SetState(IMenuItem *instance, int state) {
assert(instance != NULL);
instance->SetState(state);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IMenuItem_SetStateItemList(IMenuItem *instance, int count, char **array) {
assert(instance != NULL);
2024-04-16 03:43:29 +00:00
2024-04-16 18:56:40 +00:00
return instance->SetStateItemListArray(count, array);
2024-04-16 03:43:29 +00:00
}
/********************************
IDmfcStats 1.0 Interface functions
*********************************/
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDmfcStats_Delete(IDmfcStats *instance) {
assert(instance != NULL);
instance->Delete();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALLPTR IDmfcStats_Dynamic_Cast(IDmfcStats *instance, const char *pszType) {
assert(instance != NULL);
return instance->Dynamic_Cast(pszType);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDmfcStats_DuplicatePointer(IDmfcStats *instance) {
assert(instance != NULL);
instance->DuplicatePointer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDmfcStats_DestroyPointer(IDmfcStats *instance) {
assert(instance != NULL);
instance->DestroyPointer();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDmfcStats_Initialize(IDmfcStats *instance, tDmfcStatsInit *init_info) {
assert(instance != NULL);
return instance->Initialize(init_info);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDmfcStats_Enable(IDmfcStats *instance, bool enable) {
assert(instance != NULL);
instance->Enable(enable);
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDmfcStats_IsEnabled(IDmfcStats *instance) {
assert(instance != NULL);
return instance->IsEnabled();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDmfcStats_DoFrame(IDmfcStats *instance) {
assert(instance != NULL);
instance->DoFrame();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDmfcStats_ScrollDown(IDmfcStats *instance) {
assert(instance != NULL);
instance->ScrollDown();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
void DLLFUNCCALL IDmfcStats_ScrollUp(IDmfcStats *instance) {
assert(instance != NULL);
instance->ScrollUp();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDmfcStats_CanScrollDown(IDmfcStats *instance) {
assert(instance != NULL);
return instance->CanScrollDown();
2024-04-16 03:43:29 +00:00
}
2024-04-16 18:56:40 +00:00
bool DLLFUNCCALL IDmfcStats_CanScrollUp(IDmfcStats *instance) {
assert(instance != NULL);
return instance->CanScrollUp();
2024-04-16 03:43:29 +00:00
}