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,24 @@
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
using KianaBH.Util.Extensions;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.OpenWorld;
|
||||
|
||||
public class PacketGetOpenworldEndlessDataRsp : BasePacket
|
||||
{
|
||||
public PacketGetOpenworldEndlessDataRsp(uint level, EndlessType type) : base(CmdIds.GetOpenworldEndlessDataRsp)
|
||||
{
|
||||
var random = new Random();
|
||||
var proto = new GetOpenworldEndlessDataRsp
|
||||
{
|
||||
BeginTime = 0,
|
||||
EndTime = (uint)(Extensions.GetUnixSec() + 3600 * 24 * 7),
|
||||
CloseTime = (uint)(Extensions.GetUnixSec() + 3600 * 24 * 7 + 1200),
|
||||
RandomSeed = (uint)random.Next(1, 1000001),
|
||||
HardLevel = level,
|
||||
Type = type,
|
||||
};
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user