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.

36 lines
1.1 KiB

1 month ago
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Sog
{
// 所有类型大小在1~1024之间
public enum ServerDataObjType
{
None = 0,
MaxTypeID = 256,
}
/*
reload操作
reloadableService里
*/
public abstract class IServerDataObj
{
//热更需要的附加数据,有时候热更代码必须添加一些数据,但是定义在XXXServer.dll里,一hotfix就没了,不方便扩展
//定义这个方便添加各种数据
//注意,object数据类型不能是xxxServer.dll里的任何类型,只能是c#系统库里的,协议里的,表格里的数据类型
// int ,string ,List, Dictionary ...
// CSLoginReq CSLoginRes...
// HeroDesc ...
public Dictionary<string, object> _dataForHotfixOnly = new Dictionary<string, object>();
public abstract int GetDataType();
}
}