mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
33 lines
967 B
C#
33 lines
967 B
C#
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Scene;
|
|
|
|
public class PacketUpdateGroupPropertyScRsp : BasePacket
|
|
{
|
|
public PacketUpdateGroupPropertyScRsp(Retcode code) : base(CmdIds.UpdateGroupPropertyScRsp)
|
|
{
|
|
var proto = new UpdateGroupPropertyScRsp
|
|
{
|
|
Retcode = (uint)code
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
|
|
public PacketUpdateGroupPropertyScRsp(GroupPropertyRefreshData data, UpdateGroupPropertyCsReq req) : base(
|
|
CmdIds.UpdateGroupPropertyScRsp)
|
|
{
|
|
var proto = new UpdateGroupPropertyScRsp
|
|
{
|
|
DimensionId = req.DimensionId,
|
|
FloorId = req.FloorId,
|
|
GroupId = (uint)data.GroupId,
|
|
GroupNewPropertyValue = data.NewValue,
|
|
GroupOldPropertyValue = data.OldValue,
|
|
GroupPropertyName = data.PropertyName
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
} |