mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-02 20:26:03 +08:00
24 lines
767 B
C#
24 lines
767 B
C#
using EggLink.DanhengServer.Kcp;
|
|
using EggLink.DanhengServer.Proto;
|
|
using EggLink.DanhengServer.Util;
|
|
|
|
namespace EggLink.DanhengServer.GameServer.Server.Packet.Send.Player;
|
|
|
|
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,
|
|
BannerText = ConfigManager.Config.ServerOption.ServerAnnounce.AnnounceContent // TODO
|
|
});
|
|
|
|
if (ConfigManager.Config.ServerOption.ServerAnnounce.EnableAnnounce) SetData(proto);
|
|
}
|
|
}
|