2
0
mirror of https://github.com/rehlds/metamod-r.git synced 2024-12-31 00:55:47 +03:00
metamod-r/metamod/src/commands_meta.h

44 lines
1.1 KiB
C
Raw Normal View History

2016-07-26 19:31:47 +03:00
#pragma once
2016-07-26 03:22:47 +03:00
2016-07-26 19:31:47 +03:00
#include "types_meta.h"
2016-07-26 03:22:47 +03:00
// Flags to use for meta_cmd_doplug(), to operate on existing plugins; note
// "load" operates on a non-existing plugin thus isn't included here.
2016-07-26 19:31:47 +03:00
enum PLUG_CMD
{
2016-07-26 03:22:47 +03:00
PC_NULL = 0,
PC_PAUSE, // pause the plugin
PC_UNPAUSE, // unpause the plugin
PC_UNLOAD, // unload the plugin
PC_RELOAD, // unload the plugin and load it again
PC_RETRY, // retry a failed operation (usually load/attach)
PC_INFO, // show all info about the plugin
PC_CLEAR, // remove a failed plugin from the list
PC_FORCE_UNLOAD, // forcibly unload the plugin
PC_REQUIRE, // require that this plugin is loaded/running
2016-07-26 19:31:47 +03:00
};
2016-07-26 03:22:47 +03:00
void meta_register_cmdcvar();
2016-07-26 19:31:47 +03:00
void server_meta();
2016-07-26 03:22:47 +03:00
2016-07-26 19:31:47 +03:00
void cmd_meta_usage();
void cmd_meta_version();
void cmd_meta_gpl();
2016-07-26 03:22:47 +03:00
2016-07-26 19:31:47 +03:00
void cmd_meta_game();
void cmd_meta_refresh();
void cmd_meta_load();
2016-07-26 03:22:47 +03:00
2016-07-26 19:31:47 +03:00
void cmd_meta_pluginlist();
void cmd_meta_cmdlist();
void cmd_meta_cvarlist();
void cmd_meta_config();
2016-07-26 03:22:47 +03:00
void cmd_doplug(PLUG_CMD pcmd);
void client_meta(edict_t *pEntity);
void client_meta_usage(edict_t *pEntity);
void client_meta_version(edict_t *pEntity);
void client_meta_pluginlist(edict_t *pEntity);