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.
35 lines
1.1 KiB
35 lines
1.1 KiB
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();
|
|
}
|
|
|
|
}
|
|
|