mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 04:36:03 +08:00
32 lines
940 B
C#
32 lines
940 B
C#
using EggLink.DanhengServer.Proto;
|
|
using EggLink.DanhengServer.Util;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EggLink.DanhengServer.Server.Packet.Send.Others
|
|
{
|
|
public class PacketServerAnnounceNotify : BasePacket
|
|
{
|
|
public PacketServerAnnounceNotify() : base(CmdIds.ServerAnnounceNotify)
|
|
{
|
|
var proto = new ServerAnnounceNotify();
|
|
|
|
proto.AnnounceDataList.Add(new AnnounceData()
|
|
{
|
|
BeginTime = Extensions.GetUnixSec(),
|
|
EndTime = Extensions.GetUnixSec() + 3600,
|
|
ConfigId = 1,
|
|
CHJPFPLHJBJ = ConfigManager.Config.ServerOption.ServerAnnounce.AnnounceContent,
|
|
});
|
|
|
|
if (ConfigManager.Config.ServerOption.ServerAnnounce.EnableAnnounce)
|
|
{
|
|
SetData(proto);
|
|
}
|
|
}
|
|
}
|
|
}
|