Add externs to interface and class headers.

Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
aixxe 2016-12-20 20:09:50 +00:00
parent c40361343c
commit 66f7ff9b8e
16 changed files with 48 additions and 16 deletions

View File

@ -21,3 +21,5 @@ class CGlobalVarsBase {
int nTimestampNetworkingBase;
int nTimestampRandomizeWindow;
};
extern CGlobalVarsBase* globalvars;

View File

@ -109,3 +109,5 @@ class CInput {
cmd_verified->m_crc = cmd->GetChecksum();
}
};
extern CInput* input;

View File

@ -27,3 +27,5 @@ class IBaseClientDLL {
return GetVirtualFunction<void(*)(IBaseClientDLL*, ClientFrameStage_t)>(this, 35)(this, stage);
}
};
extern IBaseClientDLL* clientdll;

View File

@ -17,3 +17,5 @@ class IClientEntityList {
virtual void SetMaxEntities(int max_entities) = 0;
virtual int GetMaxEntities() = 0;
};
extern IClientEntityList* entitylist;

View File

@ -10,3 +10,5 @@ class ICvar {
return GetVirtualFunction<void(*)(ICvar*, const char*, ...)>(this, 24)(this, Format, Parameters...);
}
};
extern ICvar* cvar;

View File

@ -46,3 +46,5 @@ class IGameEventManager2 {
virtual bool SerializeEvent(IGameEvent* event, bf_write* buf) = 0;
virtual IGameEvent* UnserializeEvent(bf_read* buf) = 0;
};
extern IGameEventManager2* gameevents;

View File

@ -19,3 +19,5 @@ class IInputInternal {
GetVirtualFunction<void(*)(IInputInternal*, MouseCode, MouseCodeState_t)>(this, 84)(this, code, state);
}
};
extern IInputInternal* inputinternal;

View File

@ -8,3 +8,5 @@ class IInputSystem {
return GetVirtualFunction<bool(*)(void*, ButtonCode_t)>(this, 11)(this, button);
}
};
extern IInputSystem* inputsystem;

View File

@ -34,3 +34,5 @@ class ILauncherMgr {
return GetVirtualFunction<void*(*)(ILauncherMgr*)>(this, 32)(this);
}
};
extern ILauncherMgr* launchermgr;

View File

@ -137,3 +137,5 @@ class IMaterialSystem {
return GetVirtualFunction<IMaterial*(*)(IMaterialSystem*, MaterialHandle_t)>(this, 76)(this, material);
}
};
extern IMaterialSystem* matsystem;

View File

@ -12,3 +12,5 @@ class IPanel {
GetVirtualFunction<void(*)(IPanel*, VPANEL, bool, bool)>(this, 42)(this, vpanel, force_repaint, allow_force);
}
};
extern IPanel* panel;

View File

@ -93,3 +93,5 @@ class ISurface {
return GetVirtualFunction<void(*)(ISurface*, int, int, int, int)>(this, 99)(this, x, y, radius, segments);
}
};
extern ISurface* matsurface;

View File

@ -6,3 +6,5 @@ class IVDebugOverlay {
return GetVirtualFunction<int(*)(IVDebugOverlay*, const Vector&, Vector&)>(this, 9)(this, world, screen) == 0;
}
};
extern IVDebugOverlay* debugoverlay;

View File

@ -62,3 +62,5 @@ class IVEngineClient {
return GetVirtualFunction<void(*)(IVEngineClient*, const char*)>(this, 106)(this, command);
}
};
extern IVEngineClient* engine;

View File

@ -98,3 +98,5 @@ class IVModelInfoClient {
return GetVirtualFunction<studiohdr_t*(*)(IVModelInfoClient*, const model_t*)>(this, 29)(this, model);
}
};
extern IVModelInfoClient* modelinfo;

View File

@ -53,3 +53,5 @@ class IVModelRender {
GetVirtualFunction<void(*)(IVModelRender*, DrawModelState_t const&, ModelRenderInfo_t const&, matrix3x4_t*)>(this, 19)(this, state, info, bone);
}
};
extern IVModelRender* modelrender;