mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 14:54:38 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using KianaBH.Data;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Warship;
|
||||
|
||||
public class PacketGetWarshipDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetWarshipDataRsp() : base(CmdIds.GetWarshipDataRsp)
|
||||
{
|
||||
var proto = new GetWarshipDataRsp
|
||||
{
|
||||
IsAll = true,
|
||||
WarshipList =
|
||||
{
|
||||
GameData.EntryThemeData.Values
|
||||
.Select(theme => new WarshipThemeData
|
||||
{
|
||||
WarshipId = theme.SpaceShipConfigId,
|
||||
BgmPlayMode = 1,
|
||||
IsWeatherFixed = false,
|
||||
ComponentList =
|
||||
{
|
||||
theme.ThemeBgmConfigList.Count > 0
|
||||
? new List<WarshipComponent>
|
||||
{
|
||||
new()
|
||||
{
|
||||
ComponentId = theme.ThemeBgmConfigList[0],
|
||||
Type = 2
|
||||
}
|
||||
}
|
||||
: new List<WarshipComponent>()
|
||||
},
|
||||
WeatherIdx = theme.ThemeTagList.Count > 0 ? theme.ThemeTagList[0] : 0
|
||||
})
|
||||
}
|
||||
};
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using KianaBH.Data;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Warship;
|
||||
|
||||
public class PacketGetWarshipItemDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetWarshipItemDataRsp() : base(CmdIds.GetWarshipItemDataRsp)
|
||||
{
|
||||
var proto = new GetWarshipItemDataRsp
|
||||
{
|
||||
IsAll = true,
|
||||
WarshipItemIdList = { GameData.EntryThemeItemData.Values.Select(x => (uint)x.ThemeItemID) }
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Warship;
|
||||
|
||||
public class PacketGetWarshipTrialDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetWarshipTrialDataRsp() : base(CmdIds.GetWarshipTrialDataRsp)
|
||||
{
|
||||
var proto = new GetWarshipTrialDataRsp
|
||||
{
|
||||
IsAll = true,
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Warship;
|
||||
|
||||
public class PacketSetWarshipAvatarRsp : BasePacket
|
||||
{
|
||||
public PacketSetWarshipAvatarRsp() : base(CmdIds.SetWarshipAvatarRsp)
|
||||
{
|
||||
var proto = new SetWarshipAvatarRsp
|
||||
{
|
||||
Retcode = SetWarshipAvatarRsp.Types.Retcode.Succ,
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user