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

Adds base TGS integration and hooks #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -258,6 +261,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 @@ -3036,6 +3040,7 @@
#include "code\modules\tables\tables.dm"
#include "code\modules\tables\update_triggers.dm"
#include "code\modules\tension\tension.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