2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2025-03-15 06:50:18 +03:00
metamod-r/metamod/src/engine_t.h
2017-08-01 01:00:35 +07:00

20 lines
460 B
C

#pragma once
// Our structure for storing engine references.
struct engine_t
{
engine_t() : funcs(nullptr), globals(nullptr)
{
memset(&pl_funcs, 0, sizeof pl_funcs);
}
enginefuncs_t* funcs; // engine funcs
globalvars_t* globals; // engine globals
// Our modified version of the engine funcs, to give to plugins.
enginefuncs_t pl_funcs; // "modified" eng funcs we give to plugins
CSysModule sys_module;
};
extern engine_t g_engine;