mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 23:04:39 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketAddCustomAvatarTeamRsp : BasePacket
|
||||
{
|
||||
public PacketAddCustomAvatarTeamRsp() : base(CmdIds.AddCustomAvatarTeamRsp)
|
||||
{
|
||||
var proto = new AddCustomAvatarTeamRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketAvatarSubSkillLevelUpRsp : BasePacket
|
||||
{
|
||||
public PacketAvatarSubSkillLevelUpRsp() : base(CmdIds.AvatarSubSkillLevelUpRsp)
|
||||
{
|
||||
// TODO: Implement
|
||||
var proto = new AvatarSubSkillLevelUpRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketDelCustomAvatarTeamRsp : BasePacket
|
||||
{
|
||||
public PacketDelCustomAvatarTeamRsp() : base(CmdIds.DelCustomAvatarTeamRsp)
|
||||
{
|
||||
var proto = new DelCustomAvatarTeamRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketDressEquipmentRsp : BasePacket
|
||||
{
|
||||
public PacketDressEquipmentRsp() : base(CmdIds.DressEquipmentRsp)
|
||||
{
|
||||
// TODO: Implement
|
||||
var proto = new DressEquipmentRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using Google.Protobuf.Collections;
|
||||
using KianaBH.Database.Avatar;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketGetAvatarDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetAvatarDataRsp(List<AvatarInfo> Avatars, bool IsAll) : base(CmdIds.GetAvatarDataRsp)
|
||||
{
|
||||
var proto = new GetAvatarDataRsp
|
||||
{
|
||||
AvatarList = { Avatars.Select(avatar => avatar.ToProto()) },
|
||||
IsAll = IsAll
|
||||
};
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketGetAvatarMissionActivityRsp : BasePacket
|
||||
{
|
||||
public PacketGetAvatarMissionActivityRsp() : base(CmdIds.GetAvatarMissionActivityRsp)
|
||||
{
|
||||
var proto = new GetAvatarMissionActivityRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
using KianaBH.GameServer.Game.Player;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketGetAvatarRollDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetAvatarRollDataRsp(PlayerInstance player) : base(CmdIds.GetAvatarRollDataRsp)
|
||||
{
|
||||
//var proto = new GetAvatarRollDataRsp
|
||||
//{
|
||||
// IsAll = true,
|
||||
// RollList =
|
||||
// {
|
||||
// player.AvatarManager?.AvatarData?.Avatars?
|
||||
// .Select(avatar => new AvatarRoll
|
||||
// {
|
||||
// AvatarId = avatar.AvatarId,
|
||||
// IsUnlock = true
|
||||
// })
|
||||
// }
|
||||
//};
|
||||
|
||||
var proto = new GetAvatarRollDataRsp
|
||||
{
|
||||
IsAll = true,
|
||||
RollList =
|
||||
{
|
||||
new AvatarRoll { AvatarId = 101, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 102, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 103, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 104, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 105, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 106, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 111, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 112, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 113, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 114, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 201, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 202, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 203, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 204, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 205, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 206, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 211, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 212, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 213, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 214, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 301, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 302, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 303, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 311, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 312, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 313, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 314, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 317, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 401, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 402, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 403, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 404, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 411, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 412, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 421, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 422, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 501, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 502, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 503, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 504, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 506, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 507, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 511, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 601, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 602, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 603, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 604, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 611, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 612, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 702, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 703, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 705, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 706, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 711, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 712, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 713, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 714, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 801, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 802, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 803, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2201, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2202, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2401, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2501, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2601, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2801, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2901, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 2902, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 3101, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 3201, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 3301, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 3501, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 3601, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 3701, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 20201, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 20301, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 20401, IsUnlock = true },
|
||||
new AvatarRoll { AvatarId = 70005, Progress = 18 },
|
||||
new AvatarRoll { AvatarId = 70006, Progress = 18 },
|
||||
new AvatarRoll { AvatarId = 70010, Progress = 18 },
|
||||
new AvatarRoll
|
||||
{
|
||||
AvatarId = 70011,
|
||||
HasTakeGroupList = { 111 },
|
||||
Progress = 33
|
||||
},
|
||||
new AvatarRoll
|
||||
{
|
||||
AvatarId = 70019,
|
||||
HasTakeGroupList = { 191, 192 },
|
||||
Progress = 87
|
||||
},
|
||||
new AvatarRoll
|
||||
{
|
||||
AvatarId = 70022,
|
||||
HasTakeGroupList = { 221, 222 },
|
||||
IsUnlock = true,
|
||||
Progress = 68
|
||||
},
|
||||
new AvatarRoll
|
||||
{
|
||||
AvatarId = 70025,
|
||||
HasTakeGroupList = { 251, 252 },
|
||||
Progress = 87
|
||||
},
|
||||
new AvatarRoll
|
||||
{
|
||||
AvatarId = 70030,
|
||||
HasTakeGroupList = { 301, 302 },
|
||||
Progress = 87
|
||||
},
|
||||
new AvatarRoll
|
||||
{
|
||||
AvatarId = 70032,
|
||||
HasTakeGroupList = { 321 },
|
||||
Progress = 33
|
||||
},
|
||||
new AvatarRoll { AvatarId = 70038, Progress = 21 },
|
||||
new AvatarRoll { AvatarId = 70065, Progress = 33 },
|
||||
new AvatarRoll
|
||||
{
|
||||
AvatarId = 70080,
|
||||
HasTakeGroupList = { 801, 802 },
|
||||
IsUnlock = true,
|
||||
Progress = 63
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketGetAvatarTeamDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetAvatarTeamDataRsp() : base(CmdIds.GetAvatarTeamDataRsp)
|
||||
{
|
||||
var proto = new GetAvatarTeamDataRsp // TODO: Add Lineup
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Avatar;
|
||||
|
||||
public class PacketUpdateCustomAvatarTeamRsp : BasePacket
|
||||
{
|
||||
public PacketUpdateCustomAvatarTeamRsp() : base(CmdIds.UpdateCustomAvatarTeamRsp)
|
||||
{
|
||||
var proto = new UpdateCustomAvatarTeamRsp
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user