mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
Minor refactor to DMAPI (#14920)
* Minor refactor to DMAPI * Fixes typo
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
///Protects a datum from being VV'd
|
||||
#define GENERAL_PROTECT_DATUM(Path)\
|
||||
##Path/can_vv_get(var_name){\
|
||||
return FALSE;\
|
||||
}\
|
||||
##Path/vv_edit_var(var_name, var_value){\
|
||||
return FALSE;\
|
||||
}\
|
||||
##Path/CanProcCall(procname){\
|
||||
return FALSE;\
|
||||
}
|
||||
@@ -7,5 +7,5 @@
|
||||
#define TGS_WARNING_LOG(message) log_world("\[TGS] Warn: [##message]")
|
||||
#define TGS_ERROR_LOG(message) log_world("\[TGS] Error: [##message]")
|
||||
#define TGS_NOTIFY_ADMINS(event) message_admins(##event)
|
||||
#define TGS_CLIENT_COUNT GLOB.clients.len
|
||||
#define TGS_PROTECT_DATUM(Path)
|
||||
#define TGS_CLIENT_COUNT length(GLOB.clients)
|
||||
#define TGS_PROTECT_DATUM(Path) GENERAL_PROTECT_DATUM(##Path)
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include "code\hub.dm"
|
||||
#include "code\world.dm"
|
||||
#include "code\__DEFINES\_globals.dm"
|
||||
#include "code\__DEFINES\_protection.dm"
|
||||
#include "code\__DEFINES\_readme.dm"
|
||||
#include "code\__DEFINES\_spacemandmm.dm"
|
||||
#include "code\__DEFINES\_tgs_defines.dm"
|
||||
|
||||
Reference in New Issue
Block a user