mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
31 lines
854 B
C#
31 lines
854 B
C#
using EggLink.DanhengServer.GameServer.Game.Lobby;
|
|
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Lobby;
|
|
|
|
public class PacketLobbyCreateScRsp : BasePacket
|
|
{
|
|
public PacketLobbyCreateScRsp(LobbyRoomInstance room) : base(CmdIds.LobbyCreateScRsp)
|
|
{
|
|
var proto = new LobbyCreateScRsp
|
|
{
|
|
RoomId = (ulong)room.RoomId,
|
|
FightGameMode = room.GameMode,
|
|
LobbyBasicInfo = { room.Players.Select(x => x.ToProto()) },
|
|
LobbyMode = (uint)room.LobbyMode
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
|
|
public PacketLobbyCreateScRsp(Retcode retCode) : base(CmdIds.LobbyCreateScRsp)
|
|
{
|
|
var proto = new LobbyCreateScRsp
|
|
{
|
|
Retcode = (uint)retCode
|
|
};
|
|
|
|
SetData(proto);
|
|
}
|
|
} |