Add broadcasting support

- Bump appropriate versions
- Add DreamDaemon request field and permission bit.
- Add generic failure error code.
- Remove `ErrorCode` comment since they are being using in #1666.
- Fix bad interop return messages.
- Adjust DMAPI code to support broadcasts.
- Add tests.

Closes #138
This commit is contained in:
Jordan Dominion
2023-11-15 20:53:52 -05:00
parent bb06a2eff2
commit d36e2f59f8
19 changed files with 200 additions and 32 deletions
+4
View File
@@ -174,6 +174,10 @@ var/run_bridge_test
if(tactics8)
return received_health_check ? "received health check" : "did not receive health check"
var/tactics_broadcast = data["tgs_integration_test_tactics_broadcast"]
if(tactics_broadcast)
return last_tgs_broadcast || "!!NULL!!"
var/legalize_nuclear_bombs = data["shadow_wizard_money_gang"]
if(legalize_nuclear_bombs)
text2file("I expect this to remain here for a while", "kajigger.txt")
+2 -1
View File
@@ -3,7 +3,8 @@
#define TGS_READ_GLOBAL(Name) global.##Name
#define TGS_WRITE_GLOBAL(Name, Value) global.##Name = ##Value
#define TGS_PROTECT_DATUM(Path)
#define TGS_WORLD_ANNOUNCE(message) world << ##message
var/last_tgs_broadcast
#define TGS_WORLD_ANNOUNCE(message) if(TRUE) { var/__tgs_announce_message_local = ##message; world << __tgs_announce_message_local; last_tgs_broadcast = __tgs_announce_message_local; }
#define TGS_WARNING_LOG(message) world.log << "Warn: [##message]"
#define TGS_NOTIFY_ADMINS(event)
#define TGS_CLIENT_COUNT 0