You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
824 B
40 lines
824 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
using Sog;
|
|
|
|
namespace World
|
|
{
|
|
public class EventHandlerMgr : BaseReloadableService
|
|
{
|
|
public override int GetServiceType()
|
|
{
|
|
return WorldServiceType.EventHandlerMgr;
|
|
}
|
|
|
|
//清空所有事件
|
|
public override void Dispose()
|
|
{
|
|
TriggerNewDayStart = null;
|
|
TriggerServerStop = null;
|
|
}
|
|
|
|
// 新的一天开始
|
|
public delegate void NewDayStartEvent(long nowSec);
|
|
public NewDayStartEvent TriggerNewDayStart;
|
|
|
|
|
|
// 停服
|
|
public delegate void ServerStopEvent();
|
|
public ServerStopEvent TriggerServerStop;
|
|
|
|
|
|
public void RegisterAllEventHandler()
|
|
{
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|