Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packet 169 - System Broadcast #47

Merged
merged 1 commit into from
Mar 29, 2024
Merged
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;

namespace PFire.Core.Protocol.Messages.Outbound
{
internal sealed class SystemBroadcastMessage : XFireMessage
{
public SystemBroadcastMessage(string message) : base(XFireMessageType.SystemBroadcast)
{
Message = message;
}

// Not entirely sure what this does. I looked at decompiled code and it seems to make it
// skip over reading a string if set to zero or something. However even when set to zero
// it still displays.
[XMessageField(0x34)]
public int Unk { get; set; }

[XMessageField(0x2E)]
public string Message { get; set; }
}
}
1 change: 1 addition & 0 deletions src/PFire.Core/Protocol/Messages/XFireMessageType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public enum XFireMessageType : short
GroupsFriends = 152,
FriendStatusChange = 154,
ChatRooms = 155,
SystemBroadcast = 169,

Did = 400
}
Expand Down
Loading