mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
35 lines
979 B
C#
35 lines
979 B
C#
using EggLink.DanhengServer.Game.Player;
|
|
using EggLink.DanhengServer.Proto;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.Server.Packet.Send.Player
|
|
{
|
|
public class PacketGetPhoneDataScRsp : BasePacket
|
|
{
|
|
public PacketGetPhoneDataScRsp(PlayerInstance player) : base(CmdIds.GetPhoneDataScRsp)
|
|
{
|
|
var proto = new GetPhoneDataScRsp
|
|
{
|
|
CurChatBubble = (uint)player.Data.ChatBubble,
|
|
CurPhoneTheme = (uint)player.Data.PhoneTheme,
|
|
};
|
|
|
|
foreach (var item in player.PlayerUnlockData!.PhoneThemes)
|
|
{
|
|
proto.OwnedPhoneThemes.Add((uint)item);
|
|
}
|
|
|
|
foreach (var item in player.PlayerUnlockData!.ChatBubbles)
|
|
{
|
|
proto.OwnedChatBubbles.Add((uint)item);
|
|
}
|
|
|
|
SetData(proto);
|
|
}
|
|
}
|
|
}
|