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

20 lines
460 B
C
Raw Normal View History

2016-07-26 23:31:47 +07:00
#pragma once
2016-07-26 07:22:47 +07:00
// Our structure for storing engine references.
2016-07-26 23:31:47 +07:00
struct engine_t
{
2017-06-08 03:15:22 +03:00
engine_t() : funcs(nullptr), globals(nullptr)
2017-05-09 19:31:09 +03:00
{
2017-06-08 03:15:22 +03:00
memset(&pl_funcs, 0, sizeof pl_funcs);
2017-05-09 19:31:09 +03:00
}
2016-07-26 07:22:47 +07:00
enginefuncs_t* funcs; // engine funcs
globalvars_t* globals; // engine globals
2017-06-08 03:15:22 +03:00
// 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;
2016-07-26 07:22:47 +07:00
};
extern engine_t g_engine;