mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-20 09:02:32 +00:00
feat: proper gminvs with ghosting (#1920)
* feat: proper gminvis ghosting * address feedback --------- Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
This commit is contained in:
@@ -243,8 +243,6 @@ namespace GameMessages {
|
||||
bool cancelOnLogout = false, bool cancelOnRemoveBuff = true, bool cancelOnUi = false,
|
||||
bool cancelOnUnequip = false, bool cancelOnZone = false, bool addedByTeammate = false, bool applyOnTeammates = false, const SystemAddress& sysAddr = UNASSIGNED_SYSTEM_ADDRESS);
|
||||
|
||||
void SendToggleGMInvis(LWOOBJID objectId, bool enabled, const SystemAddress& sysAddr);
|
||||
|
||||
void SendSetName(LWOOBJID objectID, std::u16string name, const SystemAddress& sysAddr);
|
||||
|
||||
// Property messages
|
||||
@@ -938,6 +936,20 @@ namespace GameMessages {
|
||||
LWOOBJID lootOwnerID{};
|
||||
};
|
||||
|
||||
struct ToggleGMInvis : public GameMsg {
|
||||
ToggleGMInvis() : GameMsg(MessageType::Game::TOGGLE_GM_INVIS) {}
|
||||
|
||||
void Serialize(RakNet::BitStream& stream) const override;
|
||||
bool bStateOut{ false };
|
||||
|
||||
};
|
||||
|
||||
struct GetGMInvis : public GameMsg {
|
||||
GetGMInvis() : GameMsg(MessageType::Game::GET_GM_INVIS) {}
|
||||
|
||||
bool bGMInvis{ false };
|
||||
};
|
||||
|
||||
struct ChildRemoved : public GameMsg {
|
||||
ChildRemoved() : GameMsg(MessageType::Game::CHILD_REMOVED) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user