8.30
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
|
||||
|
||||
namespace SepCore.Definition
|
||||
{
|
||||
public sealed partial class FormatText : Luban.BeanBase
|
||||
{
|
||||
public FormatText(ByteBuf _buf)
|
||||
{
|
||||
Name = _buf.ReadString();
|
||||
Format = _buf.ReadString();
|
||||
}
|
||||
|
||||
public static FormatText DeserializeFormatText(ByteBuf _buf)
|
||||
{
|
||||
return new FormatText(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 文本名
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// 格式化字符串
|
||||
/// </summary>
|
||||
public readonly string Format;
|
||||
|
||||
public const int __ID__ = -1977697820;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "name:" + Name + ","
|
||||
+ "format:" + Format + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5b0b070e5621408e9aa0b909cab1f1b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -22,6 +22,7 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
EnemyLoseTargetMs = _buf.ReadInt();
|
||||
EnemyFrontViewAngle = _buf.ReadInt();
|
||||
AlertMax = _buf.ReadInt();
|
||||
WarehouseSlotCount = _buf.ReadInt();
|
||||
BackpackSlotCount = _buf.ReadInt();
|
||||
SecureSlotCount = _buf.ReadInt();
|
||||
MinPlayerPartySize = _buf.ReadInt();
|
||||
@@ -67,6 +68,10 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
/// </summary>
|
||||
public readonly int AlertMax;
|
||||
/// <summary>
|
||||
/// 仓库格子数
|
||||
/// </summary>
|
||||
public readonly int WarehouseSlotCount;
|
||||
/// <summary>
|
||||
/// 共享背包格子数
|
||||
/// </summary>
|
||||
public readonly int BackpackSlotCount;
|
||||
@@ -143,6 +148,7 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
@@ -154,6 +160,7 @@ public sealed partial class GlobalConfig : Luban.BeanBase
|
||||
+ "enemyLoseTargetMs:" + EnemyLoseTargetMs + ","
|
||||
+ "enemyFrontViewAngle:" + EnemyFrontViewAngle + ","
|
||||
+ "alertMax:" + AlertMax + ","
|
||||
+ "warehouseSlotCount:" + WarehouseSlotCount + ","
|
||||
+ "backpackSlotCount:" + BackpackSlotCount + ","
|
||||
+ "secureSlotCount:" + SecureSlotCount + ","
|
||||
+ "minPlayerPartySize:" + MinPlayerPartySize + ","
|
||||
|
||||
@@ -26,6 +26,7 @@ public sealed partial class ItemConfig : Luban.BeanBase
|
||||
MaxMpBonus = _buf.ReadInt();
|
||||
AtkBonus = _buf.ReadInt();
|
||||
MatBonus = _buf.ReadInt();
|
||||
SpeedBonus = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static ItemConfig DeserializeItemConfig(ByteBuf _buf)
|
||||
@@ -73,6 +74,10 @@ public sealed partial class ItemConfig : Luban.BeanBase
|
||||
/// MAT修正
|
||||
/// </summary>
|
||||
public readonly int MatBonus;
|
||||
/// <summary>
|
||||
/// SPD修正
|
||||
/// </summary>
|
||||
public readonly int SpeedBonus;
|
||||
|
||||
public const int __ID__ = -764023723;
|
||||
public override int GetTypeId() => __ID__;
|
||||
@@ -89,6 +94,7 @@ public sealed partial class ItemConfig : Luban.BeanBase
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
@@ -104,6 +110,7 @@ public sealed partial class ItemConfig : Luban.BeanBase
|
||||
+ "maxMpBonus:" + MaxMpBonus + ","
|
||||
+ "atkBonus:" + AtkBonus + ","
|
||||
+ "matBonus:" + MatBonus + ","
|
||||
+ "speedBonus:" + SpeedBonus + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ public sealed partial class SceneConfig : Luban.BeanBase
|
||||
{
|
||||
public SceneConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
Id = (SceneType)_buf.ReadInt();
|
||||
AssetName = _buf.ReadString();
|
||||
BackgroundMusicId = _buf.ReadInt();
|
||||
}
|
||||
@@ -29,7 +29,7 @@ public sealed partial class SceneConfig : Luban.BeanBase
|
||||
/// <summary>
|
||||
/// 场景编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
public readonly SceneType Id;
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace SepCore.Definition
|
||||
{
|
||||
/// <summary>
|
||||
/// 场景类型
|
||||
/// </summary>
|
||||
public enum SceneType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 启动场景
|
||||
/// </summary>
|
||||
Launch = 0,
|
||||
/// <summary>
|
||||
/// 菜单场景
|
||||
/// </summary>
|
||||
Menu = 1,
|
||||
/// <summary>
|
||||
/// 主场景
|
||||
/// </summary>
|
||||
Main = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ab1610b60f3ea4315a395afa38cc1ca5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -14,9 +14,10 @@ namespace SepCore.Definition
|
||||
public partial class Tables
|
||||
{
|
||||
/// <summary>
|
||||
/// 全局固定规则
|
||||
/// 全局零散配置(单例)
|
||||
/// </summary>
|
||||
public TbGlobalConfig TbGlobalConfig {get; }
|
||||
public TbFormatText TbFormatText {get; }
|
||||
/// <summary>
|
||||
/// 稀有度搜索时间
|
||||
/// </summary>
|
||||
@@ -85,6 +86,7 @@ public partial class Tables
|
||||
public Tables(System.Func<string, ByteBuf> loader)
|
||||
{
|
||||
TbGlobalConfig = new TbGlobalConfig(loader("tbglobalconfig"));
|
||||
TbFormatText = new TbFormatText(loader("tbformattext"));
|
||||
TbRarityConfig = new TbRarityConfig(loader("tbrarityconfig"));
|
||||
TbDifficultyConfig = new TbDifficultyConfig(loader("tbdifficultyconfig"));
|
||||
TbCharacterConfig = new TbCharacterConfig(loader("tbcharacterconfig"));
|
||||
@@ -107,6 +109,7 @@ public partial class Tables
|
||||
private void ResolveRef()
|
||||
{
|
||||
TbGlobalConfig.ResolveRef(this);
|
||||
TbFormatText.ResolveRef(this);
|
||||
TbRarityConfig.ResolveRef(this);
|
||||
TbDifficultyConfig.ResolveRef(this);
|
||||
TbCharacterConfig.ResolveRef(this);
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
|
||||
|
||||
namespace SepCore.Definition
|
||||
{
|
||||
public partial class TbFormatText
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<string, FormatText> _dataMap;
|
||||
private readonly System.Collections.Generic.List<FormatText> _dataList;
|
||||
|
||||
public TbFormatText(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<string, FormatText>();
|
||||
_dataList = new System.Collections.Generic.List<FormatText>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
FormatText _v;
|
||||
_v = FormatText.DeserializeFormatText(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Name, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<string, FormatText> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<FormatText> DataList => _dataList;
|
||||
|
||||
public FormatText GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public FormatText Get(string key) => _dataMap[key];
|
||||
public FormatText this[string key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d39bcaec55e074ab7a226678e837d3e9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -13,7 +13,7 @@ using Luban;
|
||||
namespace SepCore.Definition
|
||||
{
|
||||
/// <summary>
|
||||
/// 全局固定规则
|
||||
/// 全局零散配置(单例)
|
||||
/// </summary>
|
||||
public partial class TbGlobalConfig
|
||||
{
|
||||
@@ -55,6 +55,10 @@ public partial class TbGlobalConfig
|
||||
/// </summary>
|
||||
public int AlertMax => _data.AlertMax;
|
||||
/// <summary>
|
||||
/// 仓库格子数
|
||||
/// </summary>
|
||||
public int WarehouseSlotCount => _data.WarehouseSlotCount;
|
||||
/// <summary>
|
||||
/// 共享背包格子数
|
||||
/// </summary>
|
||||
public int BackpackSlotCount => _data.BackpackSlotCount;
|
||||
|
||||
@@ -17,12 +17,12 @@ namespace SepCore.Definition
|
||||
/// </summary>
|
||||
public partial class TbSceneConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, SceneConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.Dictionary<SceneType, SceneConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<SceneConfig> _dataList;
|
||||
|
||||
public TbSceneConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, SceneConfig>();
|
||||
_dataMap = new System.Collections.Generic.Dictionary<SceneType, SceneConfig>();
|
||||
_dataList = new System.Collections.Generic.List<SceneConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
@@ -34,12 +34,12 @@ public partial class TbSceneConfig
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, SceneConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.Dictionary<SceneType, SceneConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<SceneConfig> DataList => _dataList;
|
||||
|
||||
public SceneConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public SceneConfig Get(int key) => _dataMap[key];
|
||||
public SceneConfig this[int key] => _dataMap[key];
|
||||
public SceneConfig GetOrDefault(SceneType key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public SceneConfig Get(SceneType key) => _dataMap[key];
|
||||
public SceneConfig this[SceneType key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
@@ -17,12 +17,12 @@ namespace SepCore.Definition
|
||||
/// </summary>
|
||||
public partial class TbUIFormConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, UIFormConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.Dictionary<UIFormType, UIFormConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<UIFormConfig> _dataList;
|
||||
|
||||
public TbUIFormConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, UIFormConfig>();
|
||||
_dataMap = new System.Collections.Generic.Dictionary<UIFormType, UIFormConfig>();
|
||||
_dataList = new System.Collections.Generic.List<UIFormConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
@@ -34,12 +34,12 @@ public partial class TbUIFormConfig
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, UIFormConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.Dictionary<UIFormType, UIFormConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<UIFormConfig> DataList => _dataList;
|
||||
|
||||
public UIFormConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public UIFormConfig Get(int key) => _dataMap[key];
|
||||
public UIFormConfig this[int key] => _dataMap[key];
|
||||
public UIFormConfig GetOrDefault(UIFormType key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public UIFormConfig Get(UIFormType key) => _dataMap[key];
|
||||
public UIFormConfig this[UIFormType key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ public sealed partial class UIFormConfig : Luban.BeanBase
|
||||
{
|
||||
public UIFormConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
Id = (UIFormType)_buf.ReadInt();
|
||||
AssetName = _buf.ReadString();
|
||||
UIGroupName = _buf.ReadString();
|
||||
AllowMultiInstance = _buf.ReadBool();
|
||||
@@ -31,7 +31,7 @@ public sealed partial class UIFormConfig : Luban.BeanBase
|
||||
/// <summary>
|
||||
/// 界面编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
public readonly UIFormType Id;
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
namespace SepCore.Definition
|
||||
{
|
||||
/// <summary>
|
||||
/// 界面类型
|
||||
/// </summary>
|
||||
public enum UIFormType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 未定义
|
||||
/// </summary>
|
||||
Undefined = 0,
|
||||
/// <summary>
|
||||
/// 弹出框
|
||||
/// </summary>
|
||||
DialogForm = 1,
|
||||
/// <summary>
|
||||
/// 大厅界面
|
||||
/// </summary>
|
||||
LobbyForm = 100,
|
||||
/// <summary>
|
||||
/// 设置
|
||||
/// </summary>
|
||||
SettingForm = 101,
|
||||
/// <summary>
|
||||
/// 关于
|
||||
/// </summary>
|
||||
AboutForm = 102,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d9c04bb114b74ef4a6c4e0985d7b31a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user