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.
42 lines
1.0 KiB
42 lines
1.0 KiB
1 month ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace Sog
|
||
|
{
|
||
|
|
||
|
public interface IScript : IDisposable
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// SogLoader第一次启动服务器的时候调用
|
||
|
/// </summary>
|
||
|
/// <param name="app"></param>
|
||
|
void OnCreate(ServerApp app);
|
||
|
|
||
|
/// <summary>
|
||
|
/// SogLoader执行reload指令的时候调用,实现动态加载dll功能
|
||
|
/// </summary>
|
||
|
/// <param name="app"></param>
|
||
|
void OnHotfix(ServerApp app);
|
||
|
|
||
|
/// <summary>
|
||
|
/// reload配置文件,包括策划配置文件,可以只reload一个文件,也可以reload全部
|
||
|
/// </summary>
|
||
|
void OnReloadConfig(string excelConfigFile);
|
||
|
|
||
|
|
||
|
//停服调用
|
||
|
void OnStop();
|
||
|
|
||
|
//时间update
|
||
|
void OnTick(long nowMs);
|
||
|
|
||
|
//消息处理
|
||
|
void OnMessage(uint remoteAppID, MessageData message);
|
||
|
|
||
|
//hotfix执行前的检查
|
||
|
IScriptHotfixCheck GetScriptHotfixCheck();
|
||
|
}
|
||
|
}
|