Minor refactor to DMAPI (#14920)

* Minor refactor to DMAPI

* Fixes typo
This commit is contained in:
AffectedArc07
2020-11-18 18:58:29 +00:00
committed by GitHub
parent 8690450179
commit 0c54317ffb
3 changed files with 14 additions and 2 deletions
+11
View File
@@ -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;\
}
+2 -2
View File
@@ -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)
+1
View File
@@ -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"