mirror of
https://github.com/MikuLeaks/KianaBH3.git
synced 2025-12-16 06:44:41 +01:00
Init enter game
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using KianaBH.Data;
|
||||
using KianaBH.KcpSharp;
|
||||
using KianaBH.Proto;
|
||||
using KianaBH.Util.Extensions;
|
||||
|
||||
namespace KianaBH.GameServer.Server.Packet.Send.Activity;
|
||||
|
||||
public class PacketGeneralActivityGetScheduleRsp : BasePacket
|
||||
{
|
||||
public PacketGeneralActivityGetScheduleRsp() : base(CmdIds.GeneralActivityGetScheduleRsp)
|
||||
{
|
||||
// TODO : Add new character tutorial
|
||||
|
||||
var time = (uint)Extensions.GetUnixSec() + 3600 * 24 * 7;
|
||||
|
||||
var proto = new GeneralActivityGetScheduleRsp();
|
||||
|
||||
foreach (var tutorial in GameData.AvatarTutorialData.Values)
|
||||
{
|
||||
proto.ScheduleList.Add(new GeneralActivityScheduleInfo
|
||||
{
|
||||
ActivityId = tutorial.ActivityID,
|
||||
SettleTime = time,
|
||||
EndDayTime = time,
|
||||
EndTime = time,
|
||||
});
|
||||
}
|
||||
|
||||
foreach (var tower in GameData.ActivityTowerData.Values)
|
||||
{
|
||||
proto.ScheduleList.Add(new GeneralActivityScheduleInfo
|
||||
{
|
||||
ActivityId = tower.ActivityID,
|
||||
SettleTime = time,
|
||||
EndDayTime = time,
|
||||
EndTime = time,
|
||||
});
|
||||
}
|
||||
|
||||
SetData(proto);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user