Add externs to interface and class headers.
Signed-off-by: aixxe <me@aixxe.net>
This commit is contained in:
parent
c40361343c
commit
66f7ff9b8e
|
@ -21,3 +21,5 @@ class CGlobalVarsBase {
|
|||
int nTimestampNetworkingBase;
|
||||
int nTimestampRandomizeWindow;
|
||||
};
|
||||
|
||||
extern CGlobalVarsBase* globalvars;
|
|
@ -109,3 +109,5 @@ class CInput {
|
|||
cmd_verified->m_crc = cmd->GetChecksum();
|
||||
}
|
||||
};
|
||||
|
||||
extern CInput* input;
|
|
@ -27,3 +27,5 @@ class IBaseClientDLL {
|
|||
return GetVirtualFunction<void(*)(IBaseClientDLL*, ClientFrameStage_t)>(this, 35)(this, stage);
|
||||
}
|
||||
};
|
||||
|
||||
extern IBaseClientDLL* clientdll;
|
|
@ -17,3 +17,5 @@ class IClientEntityList {
|
|||
virtual void SetMaxEntities(int max_entities) = 0;
|
||||
virtual int GetMaxEntities() = 0;
|
||||
};
|
||||
|
||||
extern IClientEntityList* entitylist;
|
|
@ -10,3 +10,5 @@ class ICvar {
|
|||
return GetVirtualFunction<void(*)(ICvar*, const char*, ...)>(this, 24)(this, Format, Parameters...);
|
||||
}
|
||||
};
|
||||
|
||||
extern ICvar* cvar;
|
|
@ -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;
|
|
@ -19,3 +19,5 @@ class IInputInternal {
|
|||
GetVirtualFunction<void(*)(IInputInternal*, MouseCode, MouseCodeState_t)>(this, 84)(this, code, state);
|
||||
}
|
||||
};
|
||||
|
||||
extern IInputInternal* inputinternal;
|
|
@ -8,3 +8,5 @@ class IInputSystem {
|
|||
return GetVirtualFunction<bool(*)(void*, ButtonCode_t)>(this, 11)(this, button);
|
||||
}
|
||||
};
|
||||
|
||||
extern IInputSystem* inputsystem;
|
|
@ -34,3 +34,5 @@ class ILauncherMgr {
|
|||
return GetVirtualFunction<void*(*)(ILauncherMgr*)>(this, 32)(this);
|
||||
}
|
||||
};
|
||||
|
||||
extern ILauncherMgr* launchermgr;
|
|
@ -137,3 +137,5 @@ class IMaterialSystem {
|
|||
return GetVirtualFunction<IMaterial*(*)(IMaterialSystem*, MaterialHandle_t)>(this, 76)(this, material);
|
||||
}
|
||||
};
|
||||
|
||||
extern IMaterialSystem* matsystem;
|
|
@ -12,3 +12,5 @@ class IPanel {
|
|||
GetVirtualFunction<void(*)(IPanel*, VPANEL, bool, bool)>(this, 42)(this, vpanel, force_repaint, allow_force);
|
||||
}
|
||||
};
|
||||
|
||||
extern IPanel* panel;
|
|
@ -93,3 +93,5 @@ class ISurface {
|
|||
return GetVirtualFunction<void(*)(ISurface*, int, int, int, int)>(this, 99)(this, x, y, radius, segments);
|
||||
}
|
||||
};
|
||||
|
||||
extern ISurface* matsurface;
|
|
@ -6,3 +6,5 @@ class IVDebugOverlay {
|
|||
return GetVirtualFunction<int(*)(IVDebugOverlay*, const Vector&, Vector&)>(this, 9)(this, world, screen) == 0;
|
||||
}
|
||||
};
|
||||
|
||||
extern IVDebugOverlay* debugoverlay;
|
|
@ -62,3 +62,5 @@ class IVEngineClient {
|
|||
return GetVirtualFunction<void(*)(IVEngineClient*, const char*)>(this, 106)(this, command);
|
||||
}
|
||||
};
|
||||
|
||||
extern IVEngineClient* engine;
|
|
@ -98,3 +98,5 @@ class IVModelInfoClient {
|
|||
return GetVirtualFunction<studiohdr_t*(*)(IVModelInfoClient*, const model_t*)>(this, 29)(this, model);
|
||||
}
|
||||
};
|
||||
|
||||
extern IVModelInfoClient* modelinfo;
|
|
@ -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;
|
Loading…
Reference in New Issue