Init enter game

This commit is contained in:
Naruse
2025-06-14 11:15:32 +08:00
commit 6a03b39f07
568 changed files with 92872 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using KianaBH.Data;
using KianaBH.KcpSharp;
using KianaBH.Proto;
namespace KianaBH.GameServer.Server.Packet.Send.Player;
public class PacketGetPhonePendantDataRsp : BasePacket
{
public PacketGetPhonePendantDataRsp() : base(CmdIds.GetPhonePendantDataRsp)
{
//var proto = new GetPhonePendantDataRsp
//{
// IsAll = true,
// PhonePendantList =
// {
// GameData.PhonePendantData.Keys.Select(Id => new PhonePendant
// {
// Id=(uint)Id
// })
// }
//};
// TODO: Hardcoded
uint[] phones =
[
350005, 350011, 350012, 350013, 350014, 350015, 350026, 350041, 350044, 350045, 350049, 350051, 350053,
350054, 350061, 350305
];
var proto = new GetPhonePendantDataRsp
{
IsAll = true,
PhonePendantList = { phones.Select(id => new PhonePendant { Id = id }) }
};
SetData(proto);
}
}