mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
24 lines
750 B
C#
24 lines
750 B
C#
using EggLink.DanhengServer.Data;
|
|
using EggLink.DanhengServer.GameServer.Game.Player;
|
|
using EggLink.DanhengServer.Proto;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Game.Activity;
|
|
|
|
public class ActivityManager(PlayerInstance player) : BasePlayerManager(player)
|
|
{
|
|
public List<ActivityScheduleData> ToProto()
|
|
{
|
|
var proto = new List<ActivityScheduleData>();
|
|
|
|
foreach (var activity in GameData.ActivityConfig.ScheduleData)
|
|
proto.Add(new ActivityScheduleData
|
|
{
|
|
ActivityId = (uint)activity.ActivityId,
|
|
BeginTime = activity.BeginTime,
|
|
EndTime = activity.EndTime,
|
|
PanelId = (uint)activity.PanelId
|
|
});
|
|
|
|
return proto;
|
|
}
|
|
} |