mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
49 lines
1.3 KiB
C#
49 lines
1.3 KiB
C#
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Chat;
|
|
|
|
public class PacketRevcMsgScNotify : BasePacket
|
|
{
|
|
public PacketRevcMsgScNotify(uint toUid, uint fromUid, string msg) : base(CmdIds.RevcMsgScNotify)
|
|
{
|
|
var proto = new RevcMsgScNotify
|
|
{
|
|
ChatType = ChatType.Private,
|
|
SourceUid = fromUid,
|
|
TargetUid = toUid,
|
|
MessageText = msg,
|
|
MessageType = MsgType.CustomText
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
|
|
public PacketRevcMsgScNotify(uint toUid, uint fromUid, uint extraId) : base(CmdIds.RevcMsgScNotify)
|
|
{
|
|
var proto = new RevcMsgScNotify
|
|
{
|
|
ChatType = ChatType.Private,
|
|
SourceUid = fromUid,
|
|
TargetUid = toUid,
|
|
ExtraId = extraId,
|
|
MessageType = MsgType.Emoji
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
|
|
public PacketRevcMsgScNotify(uint toUid, uint fromUid, LobbyInviteInfo info) : base(CmdIds.RevcMsgScNotify)
|
|
{
|
|
var proto = new RevcMsgScNotify
|
|
{
|
|
ChatType = ChatType.Private,
|
|
SourceUid = fromUid,
|
|
TargetUid = toUid,
|
|
InviteInfo = info,
|
|
MessageType = MsgType.Invite
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
} |