Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
base tgs integration and hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Terra <[email protected]>
  • Loading branch information
MCterra10 committed May 25, 2021
1 parent f6b2c12 commit 3fd8742
Show file tree
Hide file tree
Showing 32 changed files with 2,020 additions and 12 deletions.
5 changes: 5 additions & 0 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "code\__datastructures\stack.dm"
#include "code\__defines\_compile_options.dm"
#include "code\__defines\_planes+layers.dm"
#include "code\__defines\_protect.dm"
#include "code\__defines\_tick.dm"
#include "code\__defines\admin.dm"
#include "code\__defines\antagonists.dm"
Expand Down Expand Up @@ -74,6 +75,8 @@
#include "code\__defines\subsystems.dm"
#include "code\__defines\targeting.dm"
#include "code\__defines\temperature.dm"
#include "code\__defines\tgs.config.dm"
#include "code\__defines\tgs.dm"
#include "code\__defines\topic.dm"
#include "code\__defines\turfs.dm"
#include "code\__defines\webhooks.dm"
Expand Down Expand Up @@ -253,6 +256,7 @@
#include "code\datums\sound_player.dm"
#include "code\datums\suit_sensor_jammer_method.dm"
#include "code\datums\sun.dm"
#include "code\datums\tgs_event_handler.dm"
#include "code\datums\weakref.dm"
#include "code\datums\ai\ai.dm"
#include "code\datums\ai\ai_holo.dm"
Expand Down Expand Up @@ -2991,6 +2995,7 @@
#include "code\modules\tables\rack.dm"
#include "code\modules\tables\tables.dm"
#include "code\modules\tables\update_triggers.dm"
#include "code\modules\tgs\includes.dm"
#include "code\modules\turbolift\_turbolift.dm"
#include "code\modules\turbolift\turbolift.dm"
#include "code\modules\turbolift\turbolift_areas.dm"
Expand Down
7 changes: 7 additions & 0 deletions code/__defines/_protect.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#define PROTECT_PATH(Path)\
##Path/IsProtected(){\
return TRUE;\
}

/datum/proc/IsProtected()
return FALSE
11 changes: 11 additions & 0 deletions code/__defines/tgs.config.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#define TGS_EXTERNAL_CONFIGURATION
#define TGS_DEFINE_AND_SET_GLOBAL(Name, Value) GLOBAL_VAR_INIT(##Name, ##Value); GLOBAL_PROTECT(##Name)
#define TGS_READ_GLOBAL(Name) GLOB.##Name
#define TGS_WRITE_GLOBAL(Name, Value) GLOB.##Name = ##Value
#define TGS_PROTECT_DATUM(Path) PROTECT_PATH(##Path)
#define TGS_WORLD_ANNOUNCE(message) to_chat(world, "<span class='boldannounce'><h3>[html_encode(##message)]</h3></span>")
#define TGS_NOTIFY_ADMINS(event) message_admins(##event)
#define TGS_INFO_LOG(message) log_world("TGS Info: [##message]")
#define TGS_WARNING_LOG(message) log_world("TGS Warn: [##message]")
#define TGS_ERROR_LOG(message) log_world("TGS Error: [##message]")
#define TGS_CLIENT_COUNT length(GLOB.clients)
Loading

0 comments on commit 3fd8742

Please sign in to comment.