diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-13 17:58:35 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-13 17:58:35 +1000 |
commit | c3bf7a3c87e61c56d48dd932f295c99d64d14a38 (patch) | |
tree | f00dec00a2e520b3040d01cd5d1edb2338606016 /source/game/StarWorldClient.hpp | |
parent | f02c053ed2430423748ec590d0d1ac3dc4df55a8 (diff) |
Add vanilla-compatible raw broadcasts
Diffstat (limited to 'source/game/StarWorldClient.hpp')
-rw-r--r-- | source/game/StarWorldClient.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/game/StarWorldClient.hpp b/source/game/StarWorldClient.hpp index 85be6d9..0a48a31 100644 --- a/source/game/StarWorldClient.hpp +++ b/source/game/StarWorldClient.hpp @@ -150,6 +150,12 @@ public: void disconnectAllWires(Vec2I wireEntityPosition, WireNode const& node); void connectWire(WireConnection const& output, WireConnection const& input); + // Functions for sending broadcast messages to other players that can receive them, + // on completely vanilla servers by smuggling it through a DamageNotification. + // It's cursed as fuck, but it works. + bool sendSecretBroadcast(StringView broadcast, bool raw = false); + bool handleSecretBroadcast(PlayerPtr player, StringView broadcast); + List<ChatAction> pullPendingChatActions(); WorldStructure const& centralStructure() const; |