迁移数据表到 Luban,移除 JsonNet、EnumUtility
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 CampType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 未知
|
||||
/// </summary>
|
||||
Unknown = 0,
|
||||
/// <summary>
|
||||
/// 第一玩家阵营
|
||||
/// </summary>
|
||||
Player = 1,
|
||||
/// <summary>
|
||||
/// 第一敌人阵营
|
||||
/// </summary>
|
||||
Enemy = 2,
|
||||
/// <summary>
|
||||
/// 第一中立阵营
|
||||
/// </summary>
|
||||
Neutral = 3,
|
||||
/// <summary>
|
||||
/// 第二玩家阵营
|
||||
/// </summary>
|
||||
Player2 = 4,
|
||||
/// <summary>
|
||||
/// 第二敌人阵营
|
||||
/// </summary>
|
||||
Enemy2 = 5,
|
||||
/// <summary>
|
||||
/// 第二中立阵营
|
||||
/// </summary>
|
||||
Neutral2 = 6,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c672b051e2eb2a941b5e08d3be0ee797
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,134 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 EnemyConfig : Luban.BeanBase
|
||||
{
|
||||
public EnemyConfig(ByteBuf _buf)
|
||||
{
|
||||
Name = _buf.ReadString();
|
||||
MaxHealth = _buf.ReadInt();
|
||||
HpAddPerLevel = _buf.ReadInt();
|
||||
AttackDamage = _buf.ReadInt();
|
||||
AttackCooldown = _buf.ReadFloat();
|
||||
AttackRange = _buf.ReadFloat();
|
||||
Speed = _buf.ReadFloat();
|
||||
CoinDrop = _buf.ReadInt();
|
||||
ExpDrop = _buf.ReadInt();
|
||||
DropPercent = _buf.ReadFloat();
|
||||
Scale = _buf.ReadFloat();
|
||||
Color = _buf.ReadString();
|
||||
Prefab = _buf.ReadString();
|
||||
Prefab_Ref = null;
|
||||
}
|
||||
|
||||
public static EnemyConfig DeserializeEnemyConfig(ByteBuf _buf)
|
||||
{
|
||||
return new EnemyConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// 最大生命
|
||||
/// </summary>
|
||||
public readonly int MaxHealth;
|
||||
/// <summary>
|
||||
/// 每关卡增加生命
|
||||
/// </summary>
|
||||
public readonly int HpAddPerLevel;
|
||||
/// <summary>
|
||||
/// 基础伤害
|
||||
/// </summary>
|
||||
public readonly int AttackDamage;
|
||||
/// <summary>
|
||||
/// 攻击间隔
|
||||
/// </summary>
|
||||
public readonly float AttackCooldown;
|
||||
/// <summary>
|
||||
/// 攻击范围
|
||||
/// </summary>
|
||||
public readonly float AttackRange;
|
||||
/// <summary>
|
||||
/// 移动速度
|
||||
/// </summary>
|
||||
public readonly float Speed;
|
||||
/// <summary>
|
||||
/// 金币掉落
|
||||
/// </summary>
|
||||
public readonly int CoinDrop;
|
||||
/// <summary>
|
||||
/// 经验掉落
|
||||
/// </summary>
|
||||
public readonly int ExpDrop;
|
||||
/// <summary>
|
||||
/// 掉落概率
|
||||
/// </summary>
|
||||
public readonly float DropPercent;
|
||||
/// <summary>
|
||||
/// 缩放
|
||||
/// </summary>
|
||||
public readonly float Scale;
|
||||
/// <summary>
|
||||
/// 颜色
|
||||
/// </summary>
|
||||
public readonly string Color;
|
||||
/// <summary>
|
||||
/// 预制体
|
||||
/// </summary>
|
||||
public readonly string Prefab;
|
||||
public EntityConfig Prefab_Ref;
|
||||
|
||||
public const int __ID__ = 1284055242;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Prefab_Ref = tables.TbEntityConfig.GetOrDefault(Prefab);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "name:" + Name + ","
|
||||
+ "maxHealth:" + MaxHealth + ","
|
||||
+ "hpAddPerLevel:" + HpAddPerLevel + ","
|
||||
+ "attackDamage:" + AttackDamage + ","
|
||||
+ "attackCooldown:" + AttackCooldown + ","
|
||||
+ "attackRange:" + AttackRange + ","
|
||||
+ "speed:" + Speed + ","
|
||||
+ "coinDrop:" + CoinDrop + ","
|
||||
+ "expDrop:" + ExpDrop + ","
|
||||
+ "dropPercent:" + DropPercent + ","
|
||||
+ "scale:" + Scale + ","
|
||||
+ "color:" + Color + ","
|
||||
+ "prefab:" + Prefab + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ddf3bc21c406b6e4b96c476d8b58bee4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 EntityConfig : Luban.BeanBase
|
||||
{
|
||||
public EntityConfig(ByteBuf _buf)
|
||||
{
|
||||
AssetName = _buf.ReadString();
|
||||
PrefabPath = _buf.ReadString();
|
||||
}
|
||||
|
||||
public static EntityConfig DeserializeEntityConfig(ByteBuf _buf)
|
||||
{
|
||||
return new EntityConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
public readonly string AssetName;
|
||||
/// <summary>
|
||||
/// 资源路径(相较于Assets/GameMain/Entities)
|
||||
/// </summary>
|
||||
public readonly string PrefabPath;
|
||||
|
||||
public const int __ID__ = 436072741;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "assetName:" + AssetName + ","
|
||||
+ "prefabPath:" + PrefabPath + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 190eab4113697c9498714db5a1c630bd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GlobalConfig : Luban.BeanBase
|
||||
{
|
||||
public GlobalConfig(ByteBuf _buf)
|
||||
{
|
||||
ElapsedTime = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static GlobalConfig DeserializeGlobalConfig(ByteBuf _buf)
|
||||
{
|
||||
return new GlobalConfig(_buf);
|
||||
}
|
||||
|
||||
public readonly int ElapsedTime;
|
||||
|
||||
public const int __ID__ = -958250779;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "elapsedTime:" + ElapsedTime + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2eadc3a801b420e42a692a8251881fd2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 GoodsConfig : Luban.BeanBase
|
||||
{
|
||||
public GoodsConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
GoodsType = (GoodsType)_buf.ReadInt();
|
||||
GoodsTypeId = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static GoodsConfig DeserializeGoodsConfig(ByteBuf _buf)
|
||||
{
|
||||
return new GoodsConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 商品编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 商品类型
|
||||
/// </summary>
|
||||
public readonly GoodsType GoodsType;
|
||||
/// <summary>
|
||||
/// 商品对应物品Id
|
||||
/// </summary>
|
||||
public readonly int GoodsTypeId;
|
||||
|
||||
public const int __ID__ = 1358452248;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "Id:" + Id + ","
|
||||
+ "GoodsType:" + GoodsType + ","
|
||||
+ "GoodsTypeId:" + GoodsTypeId + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b5ba1da241763e43a3c5f0e89f95404
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 GoodsType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 无
|
||||
/// </summary>
|
||||
None = 0,
|
||||
/// <summary>
|
||||
/// 道具
|
||||
/// </summary>
|
||||
Prop = 1,
|
||||
/// <summary>
|
||||
/// 武器
|
||||
/// </summary>
|
||||
Weapon = 2,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2d0093ee34e61df448d002037325577e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,59 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 LevelConfig : Luban.BeanBase
|
||||
{
|
||||
public LevelConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);EnemySpawnConfigs = new System.Collections.Generic.List<enemySpawnConfig>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { enemySpawnConfig _e0; _e0 = enemySpawnConfig.DeserializeenemySpawnConfig(_buf); EnemySpawnConfigs.Add(_e0);}}
|
||||
Duration = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static LevelConfig DeserializeLevelConfig(ByteBuf _buf)
|
||||
{
|
||||
return new LevelConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关卡id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
public readonly System.Collections.Generic.List<enemySpawnConfig> EnemySpawnConfigs;
|
||||
/// <summary>
|
||||
/// 关卡时间
|
||||
/// </summary>
|
||||
public readonly int Duration;
|
||||
|
||||
public const int __ID__ = -1308229690;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
foreach (var _e in EnemySpawnConfigs) { _e?.ResolveRef(tables); }
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "enemySpawnConfigs:" + Luban.StringUtil.CollectionToString(EnemySpawnConfigs) + ","
|
||||
+ "duration:" + Duration + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 99b000f67ba374b45995312ff1d40309
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,83 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 LevelDropConfig : Luban.BeanBase
|
||||
{
|
||||
public LevelDropConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
WhiteWeight = _buf.ReadFloat();
|
||||
GreenWeight = _buf.ReadFloat();
|
||||
BlueWeight = _buf.ReadFloat();
|
||||
PurpleWeight = _buf.ReadFloat();
|
||||
RedWeight = _buf.ReadFloat();
|
||||
}
|
||||
|
||||
public static LevelDropConfig DeserializeLevelDropConfig(ByteBuf _buf)
|
||||
{
|
||||
return new LevelDropConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 关卡编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 白色掉落率
|
||||
/// </summary>
|
||||
public readonly float WhiteWeight;
|
||||
/// <summary>
|
||||
/// 绿色掉落率
|
||||
/// </summary>
|
||||
public readonly float GreenWeight;
|
||||
/// <summary>
|
||||
/// 蓝色掉落率
|
||||
/// </summary>
|
||||
public readonly float BlueWeight;
|
||||
/// <summary>
|
||||
/// 紫色掉落率
|
||||
/// </summary>
|
||||
public readonly float PurpleWeight;
|
||||
/// <summary>
|
||||
/// 红色掉落率
|
||||
/// </summary>
|
||||
public readonly float RedWeight;
|
||||
|
||||
public const int __ID__ = 630655381;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "Id:" + Id + ","
|
||||
+ "WhiteWeight:" + WhiteWeight + ","
|
||||
+ "GreenWeight:" + GreenWeight + ","
|
||||
+ "BlueWeight:" + BlueWeight + ","
|
||||
+ "PurpleWeight:" + PurpleWeight + ","
|
||||
+ "RedWeight:" + RedWeight + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 885d818e75c447947b2173e82ad3918b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,292 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 LevelExperienceConfig : Luban.BeanBase
|
||||
{
|
||||
public LevelExperienceConfig(ByteBuf _buf)
|
||||
{
|
||||
Key = _buf.ReadString();
|
||||
Lv0 = _buf.ReadInt();
|
||||
Lv1 = _buf.ReadInt();
|
||||
Lv2 = _buf.ReadInt();
|
||||
Lv3 = _buf.ReadInt();
|
||||
Lv4 = _buf.ReadInt();
|
||||
Lv5 = _buf.ReadInt();
|
||||
Lv6 = _buf.ReadInt();
|
||||
Lv7 = _buf.ReadInt();
|
||||
Lv8 = _buf.ReadInt();
|
||||
Lv9 = _buf.ReadInt();
|
||||
Lv10 = _buf.ReadInt();
|
||||
Lv11 = _buf.ReadInt();
|
||||
Lv12 = _buf.ReadInt();
|
||||
Lv13 = _buf.ReadInt();
|
||||
Lv14 = _buf.ReadInt();
|
||||
Lv15 = _buf.ReadInt();
|
||||
Lv16 = _buf.ReadInt();
|
||||
Lv17 = _buf.ReadInt();
|
||||
Lv18 = _buf.ReadInt();
|
||||
Lv19 = _buf.ReadInt();
|
||||
Lv20 = _buf.ReadInt();
|
||||
Lv21 = _buf.ReadInt();
|
||||
Lv22 = _buf.ReadInt();
|
||||
Lv23 = _buf.ReadInt();
|
||||
Lv24 = _buf.ReadInt();
|
||||
Lv25 = _buf.ReadInt();
|
||||
Lv26 = _buf.ReadInt();
|
||||
Lv27 = _buf.ReadInt();
|
||||
Lv28 = _buf.ReadInt();
|
||||
Lv29 = _buf.ReadInt();
|
||||
Lv30 = _buf.ReadInt();
|
||||
Lv31 = _buf.ReadInt();
|
||||
Lv32 = _buf.ReadInt();
|
||||
Lv33 = _buf.ReadInt();
|
||||
Lv34 = _buf.ReadInt();
|
||||
Lv35 = _buf.ReadInt();
|
||||
Lv36 = _buf.ReadInt();
|
||||
Lv37 = _buf.ReadInt();
|
||||
Lv38 = _buf.ReadInt();
|
||||
Lv39 = _buf.ReadInt();
|
||||
Lv40 = _buf.ReadInt();
|
||||
Lv41 = _buf.ReadInt();
|
||||
Lv42 = _buf.ReadInt();
|
||||
Lv43 = _buf.ReadInt();
|
||||
Lv44 = _buf.ReadInt();
|
||||
Lv45 = _buf.ReadInt();
|
||||
Lv46 = _buf.ReadInt();
|
||||
Lv47 = _buf.ReadInt();
|
||||
Lv48 = _buf.ReadInt();
|
||||
Lv49 = _buf.ReadInt();
|
||||
Lv50 = _buf.ReadInt();
|
||||
Lv51 = _buf.ReadInt();
|
||||
Lv52 = _buf.ReadInt();
|
||||
Lv53 = _buf.ReadInt();
|
||||
Lv54 = _buf.ReadInt();
|
||||
Lv55 = _buf.ReadInt();
|
||||
Lv56 = _buf.ReadInt();
|
||||
Lv57 = _buf.ReadInt();
|
||||
Lv58 = _buf.ReadInt();
|
||||
Lv59 = _buf.ReadInt();
|
||||
Lv60 = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static LevelExperienceConfig DeserializeLevelExperienceConfig(ByteBuf _buf)
|
||||
{
|
||||
return new LevelExperienceConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 角色名
|
||||
/// </summary>
|
||||
public readonly string Key;
|
||||
public readonly int Lv0;
|
||||
public readonly int Lv1;
|
||||
public readonly int Lv2;
|
||||
public readonly int Lv3;
|
||||
public readonly int Lv4;
|
||||
public readonly int Lv5;
|
||||
public readonly int Lv6;
|
||||
public readonly int Lv7;
|
||||
public readonly int Lv8;
|
||||
public readonly int Lv9;
|
||||
public readonly int Lv10;
|
||||
public readonly int Lv11;
|
||||
public readonly int Lv12;
|
||||
public readonly int Lv13;
|
||||
public readonly int Lv14;
|
||||
public readonly int Lv15;
|
||||
public readonly int Lv16;
|
||||
public readonly int Lv17;
|
||||
public readonly int Lv18;
|
||||
public readonly int Lv19;
|
||||
public readonly int Lv20;
|
||||
public readonly int Lv21;
|
||||
public readonly int Lv22;
|
||||
public readonly int Lv23;
|
||||
public readonly int Lv24;
|
||||
public readonly int Lv25;
|
||||
public readonly int Lv26;
|
||||
public readonly int Lv27;
|
||||
public readonly int Lv28;
|
||||
public readonly int Lv29;
|
||||
public readonly int Lv30;
|
||||
public readonly int Lv31;
|
||||
public readonly int Lv32;
|
||||
public readonly int Lv33;
|
||||
public readonly int Lv34;
|
||||
public readonly int Lv35;
|
||||
public readonly int Lv36;
|
||||
public readonly int Lv37;
|
||||
public readonly int Lv38;
|
||||
public readonly int Lv39;
|
||||
public readonly int Lv40;
|
||||
public readonly int Lv41;
|
||||
public readonly int Lv42;
|
||||
public readonly int Lv43;
|
||||
public readonly int Lv44;
|
||||
public readonly int Lv45;
|
||||
public readonly int Lv46;
|
||||
public readonly int Lv47;
|
||||
public readonly int Lv48;
|
||||
public readonly int Lv49;
|
||||
public readonly int Lv50;
|
||||
public readonly int Lv51;
|
||||
public readonly int Lv52;
|
||||
public readonly int Lv53;
|
||||
public readonly int Lv54;
|
||||
public readonly int Lv55;
|
||||
public readonly int Lv56;
|
||||
public readonly int Lv57;
|
||||
public readonly int Lv58;
|
||||
public readonly int Lv59;
|
||||
public readonly int Lv60;
|
||||
|
||||
public const int __ID__ = 1891645648;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "key:" + Key + ","
|
||||
+ "Lv0:" + Lv0 + ","
|
||||
+ "Lv1:" + Lv1 + ","
|
||||
+ "Lv2:" + Lv2 + ","
|
||||
+ "Lv3:" + Lv3 + ","
|
||||
+ "Lv4:" + Lv4 + ","
|
||||
+ "Lv5:" + Lv5 + ","
|
||||
+ "Lv6:" + Lv6 + ","
|
||||
+ "Lv7:" + Lv7 + ","
|
||||
+ "Lv8:" + Lv8 + ","
|
||||
+ "Lv9:" + Lv9 + ","
|
||||
+ "Lv10:" + Lv10 + ","
|
||||
+ "Lv11:" + Lv11 + ","
|
||||
+ "Lv12:" + Lv12 + ","
|
||||
+ "Lv13:" + Lv13 + ","
|
||||
+ "Lv14:" + Lv14 + ","
|
||||
+ "Lv15:" + Lv15 + ","
|
||||
+ "Lv16:" + Lv16 + ","
|
||||
+ "Lv17:" + Lv17 + ","
|
||||
+ "Lv18:" + Lv18 + ","
|
||||
+ "Lv19:" + Lv19 + ","
|
||||
+ "Lv20:" + Lv20 + ","
|
||||
+ "Lv21:" + Lv21 + ","
|
||||
+ "Lv22:" + Lv22 + ","
|
||||
+ "Lv23:" + Lv23 + ","
|
||||
+ "Lv24:" + Lv24 + ","
|
||||
+ "Lv25:" + Lv25 + ","
|
||||
+ "Lv26:" + Lv26 + ","
|
||||
+ "Lv27:" + Lv27 + ","
|
||||
+ "Lv28:" + Lv28 + ","
|
||||
+ "Lv29:" + Lv29 + ","
|
||||
+ "Lv30:" + Lv30 + ","
|
||||
+ "Lv31:" + Lv31 + ","
|
||||
+ "Lv32:" + Lv32 + ","
|
||||
+ "Lv33:" + Lv33 + ","
|
||||
+ "Lv34:" + Lv34 + ","
|
||||
+ "Lv35:" + Lv35 + ","
|
||||
+ "Lv36:" + Lv36 + ","
|
||||
+ "Lv37:" + Lv37 + ","
|
||||
+ "Lv38:" + Lv38 + ","
|
||||
+ "Lv39:" + Lv39 + ","
|
||||
+ "Lv40:" + Lv40 + ","
|
||||
+ "Lv41:" + Lv41 + ","
|
||||
+ "Lv42:" + Lv42 + ","
|
||||
+ "Lv43:" + Lv43 + ","
|
||||
+ "Lv44:" + Lv44 + ","
|
||||
+ "Lv45:" + Lv45 + ","
|
||||
+ "Lv46:" + Lv46 + ","
|
||||
+ "Lv47:" + Lv47 + ","
|
||||
+ "Lv48:" + Lv48 + ","
|
||||
+ "Lv49:" + Lv49 + ","
|
||||
+ "Lv50:" + Lv50 + ","
|
||||
+ "Lv51:" + Lv51 + ","
|
||||
+ "Lv52:" + Lv52 + ","
|
||||
+ "Lv53:" + Lv53 + ","
|
||||
+ "Lv54:" + Lv54 + ","
|
||||
+ "Lv55:" + Lv55 + ","
|
||||
+ "Lv56:" + Lv56 + ","
|
||||
+ "Lv57:" + Lv57 + ","
|
||||
+ "Lv58:" + Lv58 + ","
|
||||
+ "Lv59:" + Lv59 + ","
|
||||
+ "Lv60:" + Lv60 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9f625edfd0fc40345bd8147faa4a2ca1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,66 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 LevelUpRewardConfig : Luban.BeanBase
|
||||
{
|
||||
public LevelUpRewardConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
Title = _buf.ReadString();
|
||||
Rarity = (Rarity)_buf.ReadInt();
|
||||
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Modifiers = new System.Collections.Generic.List<modifier>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { modifier _e0; _e0 = modifier.Deserializemodifier(_buf); Modifiers.Add(_e0);}}
|
||||
}
|
||||
|
||||
public static LevelUpRewardConfig DeserializeLevelUpRewardConfig(ByteBuf _buf)
|
||||
{
|
||||
return new LevelUpRewardConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 奖励编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 奖励名
|
||||
/// </summary>
|
||||
public readonly string Title;
|
||||
/// <summary>
|
||||
/// 道具品质
|
||||
/// </summary>
|
||||
public readonly Rarity Rarity;
|
||||
public readonly System.Collections.Generic.List<modifier> Modifiers;
|
||||
|
||||
public const int __ID__ = 1603299856;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
foreach (var _e in Modifiers) { _e?.ResolveRef(tables); }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "title:" + Title + ","
|
||||
+ "rarity:" + Rarity + ","
|
||||
+ "modifiers:" + Luban.StringUtil.CollectionToString(Modifiers) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 71326e34f07cb9945b20e91d60f38186
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 MusicConfig : Luban.BeanBase
|
||||
{
|
||||
public MusicConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
AssetName = _buf.ReadString();
|
||||
}
|
||||
|
||||
public static MusicConfig DeserializeMusicConfig(ByteBuf _buf)
|
||||
{
|
||||
return new MusicConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 音乐编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
public readonly string AssetName;
|
||||
|
||||
public const int __ID__ = -1843325529;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "assetName:" + AssetName + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5781a4179943295449af179456cabec2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 ParamType : int
|
||||
{
|
||||
/// <summary>
|
||||
/// 无
|
||||
/// </summary>
|
||||
None = 0,
|
||||
/// <summary>
|
||||
/// 攻击半径
|
||||
/// </summary>
|
||||
HitRadius = 1,
|
||||
/// <summary>
|
||||
/// 挥动角度
|
||||
/// </summary>
|
||||
SectorAngle = 2,
|
||||
/// <summary>
|
||||
/// 攻击半宽
|
||||
/// </summary>
|
||||
HitHalfWidth = 3,
|
||||
/// <summary>
|
||||
/// 戳刺长度
|
||||
/// </summary>
|
||||
PierceLength = 4,
|
||||
/// <summary>
|
||||
/// 攻击高度
|
||||
/// </summary>
|
||||
HitHeight = 5,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9a785535c64bd914c99b14f1fd33b6db
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,73 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 PropConfig : Luban.BeanBase
|
||||
{
|
||||
public PropConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
Name = _buf.ReadString();
|
||||
Rarity = (Rarity)_buf.ReadInt();
|
||||
Price = _buf.ReadInt();
|
||||
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Modifiers = new System.Collections.Generic.List<modifier>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { modifier _e0; _e0 = modifier.Deserializemodifier(_buf); Modifiers.Add(_e0);}}
|
||||
}
|
||||
|
||||
public static PropConfig DeserializePropConfig(ByteBuf _buf)
|
||||
{
|
||||
return new PropConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 道具id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 道具名
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// 道具品质
|
||||
/// </summary>
|
||||
public readonly Rarity Rarity;
|
||||
/// <summary>
|
||||
/// 道具价格
|
||||
/// </summary>
|
||||
public readonly int Price;
|
||||
public readonly System.Collections.Generic.List<modifier> Modifiers;
|
||||
|
||||
public const int __ID__ = 91068581;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
foreach (var _e in Modifiers) { _e?.ResolveRef(tables); }
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "name:" + Name + ","
|
||||
+ "rarity:" + Rarity + ","
|
||||
+ "price:" + Price + ","
|
||||
+ "modifiers:" + Luban.StringUtil.CollectionToString(Modifiers) + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d304263d3efd87a4a9b55c70b1c3eeee
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,46 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Rarity : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 无
|
||||
/// </summary>
|
||||
None = 0,
|
||||
/// <summary>
|
||||
/// 白
|
||||
/// </summary>
|
||||
White = 1,
|
||||
/// <summary>
|
||||
/// 绿
|
||||
/// </summary>
|
||||
Green = 2,
|
||||
/// <summary>
|
||||
/// 蓝
|
||||
/// </summary>
|
||||
Blue = 3,
|
||||
/// <summary>
|
||||
/// 紫
|
||||
/// </summary>
|
||||
Purple = 4,
|
||||
/// <summary>
|
||||
/// 红
|
||||
/// </summary>
|
||||
Red = 5,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 328e66a7ca3814e4499226bd4be04170
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 RelationType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 未知
|
||||
/// </summary>
|
||||
Unknown = 0,
|
||||
/// <summary>
|
||||
/// 友好
|
||||
/// </summary>
|
||||
Friendly = 1,
|
||||
/// <summary>
|
||||
/// 中立
|
||||
/// </summary>
|
||||
Neutral = 2,
|
||||
/// <summary>
|
||||
/// 敌对
|
||||
/// </summary>
|
||||
Hostile = 3,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9fa67f831ebd8f14cb7fcfa3a16c71b8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,74 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 RoleConfig : Luban.BeanBase
|
||||
{
|
||||
public RoleConfig(ByteBuf _buf)
|
||||
{
|
||||
Name = _buf.ReadString();
|
||||
MaxHealth = _buf.ReadInt();
|
||||
Speed = _buf.ReadFloat();
|
||||
Coin = _buf.ReadInt();
|
||||
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Modifiers = new System.Collections.Generic.List<modifier>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { modifier _e0; _e0 = modifier.Deserializemodifier(_buf); Modifiers.Add(_e0);}}
|
||||
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);InitialItems = new System.Collections.Generic.List<int>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { int _e0; _e0 = _buf.ReadInt(); InitialItems.Add(_e0);}}
|
||||
Prefab = _buf.ReadString();
|
||||
Prefab_Ref = null;
|
||||
}
|
||||
|
||||
public static RoleConfig DeserializeRoleConfig(ByteBuf _buf)
|
||||
{
|
||||
return new RoleConfig(_buf);
|
||||
}
|
||||
|
||||
public readonly string Name;
|
||||
public readonly int MaxHealth;
|
||||
public readonly float Speed;
|
||||
public readonly int Coin;
|
||||
/// <summary>
|
||||
/// key
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<modifier> Modifiers;
|
||||
public readonly System.Collections.Generic.List<int> InitialItems;
|
||||
public readonly string Prefab;
|
||||
public EntityConfig Prefab_Ref;
|
||||
|
||||
public const int __ID__ = -1280631944;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
foreach (var _e in Modifiers) { _e?.ResolveRef(tables); }
|
||||
|
||||
Prefab_Ref = tables.TbEntityConfig.GetOrDefault(Prefab);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "name:" + Name + ","
|
||||
+ "maxHealth:" + MaxHealth + ","
|
||||
+ "speed:" + Speed + ","
|
||||
+ "coin:" + Coin + ","
|
||||
+ "modifiers:" + Luban.StringUtil.CollectionToString(Modifiers) + ","
|
||||
+ "initialItems:" + Luban.StringUtil.CollectionToString(InitialItems) + ","
|
||||
+ "prefab:" + Prefab + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 294e05f9ab2cba3469382ebaafa20459
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 SceneConfig : Luban.BeanBase
|
||||
{
|
||||
public SceneConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = (SceneType)_buf.ReadInt();
|
||||
AssetName = _buf.ReadString();
|
||||
BackgroundMusicId = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static SceneConfig DeserializeSceneConfig(ByteBuf _buf)
|
||||
{
|
||||
return new SceneConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 场景编号
|
||||
/// </summary>
|
||||
public readonly SceneType Id;
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
public readonly string AssetName;
|
||||
/// <summary>
|
||||
/// 背景音乐编号
|
||||
/// </summary>
|
||||
public readonly int BackgroundMusicId;
|
||||
|
||||
public const int __ID__ = 935827150;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "assetName:" + AssetName + ","
|
||||
+ "backgroundMusicId:" + BackgroundMusicId + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 15645a2641a37ac49b27e551899dc4e1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 SceneType : byte
|
||||
{
|
||||
/// <summary>
|
||||
/// 启动场景
|
||||
/// </summary>
|
||||
Launch = 0,
|
||||
/// <summary>
|
||||
/// 菜单场景
|
||||
/// </summary>
|
||||
Menu = 1,
|
||||
/// <summary>
|
||||
/// 主场景
|
||||
/// </summary>
|
||||
Main = 2,
|
||||
/// <summary>
|
||||
/// 压力测试
|
||||
/// </summary>
|
||||
StressTest = 3,
|
||||
/// <summary>
|
||||
/// 主游戏
|
||||
/// </summary>
|
||||
Game = 4,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c5f8926205ae9d24d996ca8d0adad0f2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,97 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 SoundConfig : Luban.BeanBase
|
||||
{
|
||||
public SoundConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
Name = _buf.ReadString();
|
||||
AssetName = _buf.ReadString();
|
||||
Priority = _buf.ReadInt();
|
||||
Loop = _buf.ReadBool();
|
||||
Volume = _buf.ReadFloat();
|
||||
SpatialBlend = _buf.ReadFloat();
|
||||
MaxDistance = _buf.ReadFloat();
|
||||
}
|
||||
|
||||
public static SoundConfig DeserializeSoundConfig(ByteBuf _buf)
|
||||
{
|
||||
return new SoundConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 声音编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 名字
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
public readonly string AssetName;
|
||||
/// <summary>
|
||||
/// 优先级(默认0,128最高,-128最低)
|
||||
/// </summary>
|
||||
public readonly int Priority;
|
||||
/// <summary>
|
||||
/// 是否循环
|
||||
/// </summary>
|
||||
public readonly bool Loop;
|
||||
/// <summary>
|
||||
/// 音量(0~1)
|
||||
/// </summary>
|
||||
public readonly float Volume;
|
||||
/// <summary>
|
||||
/// 声音空间混合量(0为2D,1为3D)
|
||||
/// </summary>
|
||||
public readonly float SpatialBlend;
|
||||
/// <summary>
|
||||
/// 声音最大距离
|
||||
/// </summary>
|
||||
public readonly float MaxDistance;
|
||||
|
||||
public const int __ID__ = -1164338927;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "name:" + Name + ","
|
||||
+ "assetName:" + AssetName + ","
|
||||
+ "priority:" + Priority + ","
|
||||
+ "loop:" + Loop + ","
|
||||
+ "volume:" + Volume + ","
|
||||
+ "spatialBlend:" + SpatialBlend + ","
|
||||
+ "maxDistance:" + MaxDistance + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cf12b4b814d979845aee6edef8c12a7f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 SpriteConfig : Luban.BeanBase
|
||||
{
|
||||
public SpriteConfig(ByteBuf _buf)
|
||||
{
|
||||
Key = _buf.ReadString();
|
||||
AtlasPath = _buf.ReadString();
|
||||
SpriteIndex = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static SpriteConfig DeserializeSpriteConfig(ByteBuf _buf)
|
||||
{
|
||||
return new SpriteConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 资源键
|
||||
/// </summary>
|
||||
public readonly string Key;
|
||||
/// <summary>
|
||||
/// 图集路径(相对于 Assets/GameMain/Textures)
|
||||
/// </summary>
|
||||
public readonly string AtlasPath;
|
||||
/// <summary>
|
||||
/// Sprite 索引(-1 表示整张图)
|
||||
/// </summary>
|
||||
public readonly int SpriteIndex;
|
||||
|
||||
public const int __ID__ = -1527849337;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "key:" + Key + ","
|
||||
+ "atlasPath:" + AtlasPath + ","
|
||||
+ "spriteIndex:" + SpriteIndex + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 254617e67991a934ba1bfaccf2985fd7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,62 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 StatType : int
|
||||
{
|
||||
/// <summary>
|
||||
/// 无
|
||||
/// </summary>
|
||||
None = 0,
|
||||
/// <summary>
|
||||
/// 最大生命
|
||||
/// </summary>
|
||||
MaxHealth = 1,
|
||||
/// <summary>
|
||||
/// 移动速度
|
||||
/// </summary>
|
||||
MovementSpeed = 2,
|
||||
/// <summary>
|
||||
/// 攻击力
|
||||
/// </summary>
|
||||
Attack = 3,
|
||||
/// <summary>
|
||||
/// 防御力
|
||||
/// </summary>
|
||||
Defense = 4,
|
||||
/// <summary>
|
||||
/// 攻击速度
|
||||
/// </summary>
|
||||
AttackSpeed = 5,
|
||||
/// <summary>
|
||||
/// 暴击率
|
||||
/// </summary>
|
||||
Critical = 6,
|
||||
/// <summary>
|
||||
/// 暴击伤害
|
||||
/// </summary>
|
||||
CriticalDamage = 7,
|
||||
/// <summary>
|
||||
/// 闪避率
|
||||
/// </summary>
|
||||
Dodge = 8,
|
||||
/// <summary>
|
||||
/// 自动吸收范围
|
||||
/// </summary>
|
||||
AbsorbRange = 9,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60d624990e872894c971fac46c38ce5b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,108 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 Tables
|
||||
{
|
||||
/// <summary>
|
||||
/// 敌人属性与行为
|
||||
/// </summary>
|
||||
public TbEnemyConfig TbEnemyConfig {get; }
|
||||
/// <summary>
|
||||
/// 实体配置
|
||||
/// </summary>
|
||||
public TbEntityConfig TbEntityConfig {get; }
|
||||
/// <summary>
|
||||
/// 全局零散配置(单例)
|
||||
/// </summary>
|
||||
public TbGlobalConfig TbGlobalConfig {get; }
|
||||
public TbGoodsConfig TbGoodsConfig {get; }
|
||||
public TbLevelConfig TbLevelConfig {get; }
|
||||
public TbLevelDropConfig TbLevelDropConfig {get; }
|
||||
public TbLevelExperienceConfig TbLevelExperienceConfig {get; }
|
||||
public TbLevelUpRewardConfig TbLevelUpRewardConfig {get; }
|
||||
/// <summary>
|
||||
/// 音乐配置
|
||||
/// </summary>
|
||||
public TbMusicConfig TbMusicConfig {get; }
|
||||
public TbPropConfig TbPropConfig {get; }
|
||||
public TbRoleConfig TbRoleConfig {get; }
|
||||
/// <summary>
|
||||
/// 场景配置
|
||||
/// </summary>
|
||||
public TbSceneConfig TbSceneConfig {get; }
|
||||
/// <summary>
|
||||
/// 声音配置
|
||||
/// </summary>
|
||||
public TbSoundConfig TbSoundConfig {get; }
|
||||
/// <summary>
|
||||
/// 图片资源配置
|
||||
/// </summary>
|
||||
public TbSpriteConfig TbSpriteConfig {get; }
|
||||
/// <summary>
|
||||
/// 界面配置
|
||||
/// </summary>
|
||||
public TbUIFormConfig TbUIFormConfig {get; }
|
||||
/// <summary>
|
||||
/// 界面音效配置
|
||||
/// </summary>
|
||||
public TbUISoundConfig TbUISoundConfig {get; }
|
||||
/// <summary>
|
||||
/// 界面配置
|
||||
/// </summary>
|
||||
public TbWeaponConfig TbWeaponConfig {get; }
|
||||
|
||||
public Tables(System.Func<string, ByteBuf> loader)
|
||||
{
|
||||
TbEnemyConfig = new TbEnemyConfig(loader("tbenemyconfig"));
|
||||
TbEntityConfig = new TbEntityConfig(loader("tbentityconfig"));
|
||||
TbGlobalConfig = new TbGlobalConfig(loader("tbglobalconfig"));
|
||||
TbGoodsConfig = new TbGoodsConfig(loader("tbgoodsconfig"));
|
||||
TbLevelConfig = new TbLevelConfig(loader("tblevelconfig"));
|
||||
TbLevelDropConfig = new TbLevelDropConfig(loader("tbleveldropconfig"));
|
||||
TbLevelExperienceConfig = new TbLevelExperienceConfig(loader("tblevelexperienceconfig"));
|
||||
TbLevelUpRewardConfig = new TbLevelUpRewardConfig(loader("tbleveluprewardconfig"));
|
||||
TbMusicConfig = new TbMusicConfig(loader("tbmusicconfig"));
|
||||
TbPropConfig = new TbPropConfig(loader("tbpropconfig"));
|
||||
TbRoleConfig = new TbRoleConfig(loader("tbroleconfig"));
|
||||
TbSceneConfig = new TbSceneConfig(loader("tbsceneconfig"));
|
||||
TbSoundConfig = new TbSoundConfig(loader("tbsoundconfig"));
|
||||
TbSpriteConfig = new TbSpriteConfig(loader("tbspriteconfig"));
|
||||
TbUIFormConfig = new TbUIFormConfig(loader("tbuiformconfig"));
|
||||
TbUISoundConfig = new TbUISoundConfig(loader("tbuisoundconfig"));
|
||||
TbWeaponConfig = new TbWeaponConfig(loader("tbweaponconfig"));
|
||||
ResolveRef();
|
||||
}
|
||||
|
||||
private void ResolveRef()
|
||||
{
|
||||
TbEnemyConfig.ResolveRef(this);
|
||||
TbEntityConfig.ResolveRef(this);
|
||||
TbGlobalConfig.ResolveRef(this);
|
||||
TbGoodsConfig.ResolveRef(this);
|
||||
TbLevelConfig.ResolveRef(this);
|
||||
TbLevelDropConfig.ResolveRef(this);
|
||||
TbLevelExperienceConfig.ResolveRef(this);
|
||||
TbLevelUpRewardConfig.ResolveRef(this);
|
||||
TbMusicConfig.ResolveRef(this);
|
||||
TbPropConfig.ResolveRef(this);
|
||||
TbRoleConfig.ResolveRef(this);
|
||||
TbSceneConfig.ResolveRef(this);
|
||||
TbSoundConfig.ResolveRef(this);
|
||||
TbSpriteConfig.ResolveRef(this);
|
||||
TbUIFormConfig.ResolveRef(this);
|
||||
TbUISoundConfig.ResolveRef(this);
|
||||
TbWeaponConfig.ResolveRef(this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9c3f9f566e955a548b29d0be95e3072b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 敌人属性与行为
|
||||
/// </summary>
|
||||
public partial class TbEnemyConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<string, EnemyConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<EnemyConfig> _dataList;
|
||||
|
||||
public TbEnemyConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<string, EnemyConfig>();
|
||||
_dataList = new System.Collections.Generic.List<EnemyConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
EnemyConfig _v;
|
||||
_v = EnemyConfig.DeserializeEnemyConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Name, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<string, EnemyConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<EnemyConfig> DataList => _dataList;
|
||||
|
||||
public EnemyConfig GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public EnemyConfig Get(string key) => _dataMap[key];
|
||||
public EnemyConfig 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: 620071d2781f2204b8ffcd524807589b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 实体配置
|
||||
/// </summary>
|
||||
public partial class TbEntityConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<string, EntityConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<EntityConfig> _dataList;
|
||||
|
||||
public TbEntityConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<string, EntityConfig>();
|
||||
_dataList = new System.Collections.Generic.List<EntityConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
EntityConfig _v;
|
||||
_v = EntityConfig.DeserializeEntityConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.AssetName, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<string, EntityConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<EntityConfig> DataList => _dataList;
|
||||
|
||||
public EntityConfig GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public EntityConfig Get(string key) => _dataMap[key];
|
||||
public EntityConfig 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: 546e5762047211a4fa6e7e1c75add3ad
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
|
||||
|
||||
namespace SepCore.Definition
|
||||
{
|
||||
/// <summary>
|
||||
/// 全局零散配置(单例)
|
||||
/// </summary>
|
||||
public partial class TbGlobalConfig
|
||||
{
|
||||
|
||||
private readonly GlobalConfig _data;
|
||||
|
||||
public GlobalConfig Data => _data;
|
||||
|
||||
public TbGlobalConfig(ByteBuf _buf)
|
||||
{
|
||||
int n = _buf.ReadSize();
|
||||
if (n != 1) throw new SerializationException("table mode=one, but size != 1");
|
||||
_data = GlobalConfig.DeserializeGlobalConfig(_buf);
|
||||
}
|
||||
|
||||
|
||||
public int ElapsedTime => _data.ElapsedTime;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
_data.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a3f240ad9f5760d46b0f3ade1f1745c2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 TbGoodsConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, GoodsConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<GoodsConfig> _dataList;
|
||||
|
||||
public TbGoodsConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, GoodsConfig>();
|
||||
_dataList = new System.Collections.Generic.List<GoodsConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
GoodsConfig _v;
|
||||
_v = GoodsConfig.DeserializeGoodsConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, GoodsConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<GoodsConfig> DataList => _dataList;
|
||||
|
||||
public GoodsConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public GoodsConfig Get(int key) => _dataMap[key];
|
||||
public GoodsConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: adb15bc24b835dc47b1e46c698be3693
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 TbLevelConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, LevelConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<LevelConfig> _dataList;
|
||||
|
||||
public TbLevelConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, LevelConfig>();
|
||||
_dataList = new System.Collections.Generic.List<LevelConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
LevelConfig _v;
|
||||
_v = LevelConfig.DeserializeLevelConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, LevelConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<LevelConfig> DataList => _dataList;
|
||||
|
||||
public LevelConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public LevelConfig Get(int key) => _dataMap[key];
|
||||
public LevelConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 829706c35bd851b4899108195ac8ce09
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 TbLevelDropConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, LevelDropConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<LevelDropConfig> _dataList;
|
||||
|
||||
public TbLevelDropConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, LevelDropConfig>();
|
||||
_dataList = new System.Collections.Generic.List<LevelDropConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
LevelDropConfig _v;
|
||||
_v = LevelDropConfig.DeserializeLevelDropConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, LevelDropConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<LevelDropConfig> DataList => _dataList;
|
||||
|
||||
public LevelDropConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public LevelDropConfig Get(int key) => _dataMap[key];
|
||||
public LevelDropConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 39007f3f873557a47994c67b6287d5b9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 TbLevelExperienceConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<string, LevelExperienceConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<LevelExperienceConfig> _dataList;
|
||||
|
||||
public TbLevelExperienceConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<string, LevelExperienceConfig>();
|
||||
_dataList = new System.Collections.Generic.List<LevelExperienceConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
LevelExperienceConfig _v;
|
||||
_v = LevelExperienceConfig.DeserializeLevelExperienceConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Key, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<string, LevelExperienceConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<LevelExperienceConfig> DataList => _dataList;
|
||||
|
||||
public LevelExperienceConfig GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public LevelExperienceConfig Get(string key) => _dataMap[key];
|
||||
public LevelExperienceConfig 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: ee45b2bf4f586714bb603688b2f6be7e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 TbLevelUpRewardConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, LevelUpRewardConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<LevelUpRewardConfig> _dataList;
|
||||
|
||||
public TbLevelUpRewardConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, LevelUpRewardConfig>();
|
||||
_dataList = new System.Collections.Generic.List<LevelUpRewardConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
LevelUpRewardConfig _v;
|
||||
_v = LevelUpRewardConfig.DeserializeLevelUpRewardConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, LevelUpRewardConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<LevelUpRewardConfig> DataList => _dataList;
|
||||
|
||||
public LevelUpRewardConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public LevelUpRewardConfig Get(int key) => _dataMap[key];
|
||||
public LevelUpRewardConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 24893d1ce918b4147abe878d54d80c0d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 音乐配置
|
||||
/// </summary>
|
||||
public partial class TbMusicConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, MusicConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<MusicConfig> _dataList;
|
||||
|
||||
public TbMusicConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, MusicConfig>();
|
||||
_dataList = new System.Collections.Generic.List<MusicConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
MusicConfig _v;
|
||||
_v = MusicConfig.DeserializeMusicConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, MusicConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<MusicConfig> DataList => _dataList;
|
||||
|
||||
public MusicConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public MusicConfig Get(int key) => _dataMap[key];
|
||||
public MusicConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97e38b7b870a6844297530dbbc6ecac5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 TbPropConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, PropConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<PropConfig> _dataList;
|
||||
|
||||
public TbPropConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, PropConfig>();
|
||||
_dataList = new System.Collections.Generic.List<PropConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
PropConfig _v;
|
||||
_v = PropConfig.DeserializePropConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, PropConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<PropConfig> DataList => _dataList;
|
||||
|
||||
public PropConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public PropConfig Get(int key) => _dataMap[key];
|
||||
public PropConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 448872b0adca0524a8dec6f4b34622c9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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 TbRoleConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<string, RoleConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<RoleConfig> _dataList;
|
||||
|
||||
public TbRoleConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<string, RoleConfig>();
|
||||
_dataList = new System.Collections.Generic.List<RoleConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
RoleConfig _v;
|
||||
_v = RoleConfig.DeserializeRoleConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Name, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<string, RoleConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<RoleConfig> DataList => _dataList;
|
||||
|
||||
public RoleConfig GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public RoleConfig Get(string key) => _dataMap[key];
|
||||
public RoleConfig 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: 7a5ed286f1d68654ebca7c475b351d51
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 场景配置
|
||||
/// </summary>
|
||||
public partial class TbSceneConfig
|
||||
{
|
||||
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<SceneType, SceneConfig>();
|
||||
_dataList = new System.Collections.Generic.List<SceneConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
SceneConfig _v;
|
||||
_v = SceneConfig.DeserializeSceneConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<SceneType, SceneConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<SceneConfig> DataList => _dataList;
|
||||
|
||||
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)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e51582e744e36db46a49a1ba330f789a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 声音配置
|
||||
/// </summary>
|
||||
public partial class TbSoundConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, SoundConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<SoundConfig> _dataList;
|
||||
|
||||
public TbSoundConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, SoundConfig>();
|
||||
_dataList = new System.Collections.Generic.List<SoundConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
SoundConfig _v;
|
||||
_v = SoundConfig.DeserializeSoundConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, SoundConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<SoundConfig> DataList => _dataList;
|
||||
|
||||
public SoundConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public SoundConfig Get(int key) => _dataMap[key];
|
||||
public SoundConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a8ec7abc7ff7e264a898f51d64882ad9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 图片资源配置
|
||||
/// </summary>
|
||||
public partial class TbSpriteConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<string, SpriteConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<SpriteConfig> _dataList;
|
||||
|
||||
public TbSpriteConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<string, SpriteConfig>();
|
||||
_dataList = new System.Collections.Generic.List<SpriteConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
SpriteConfig _v;
|
||||
_v = SpriteConfig.DeserializeSpriteConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Key, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<string, SpriteConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<SpriteConfig> DataList => _dataList;
|
||||
|
||||
public SpriteConfig GetOrDefault(string key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public SpriteConfig Get(string key) => _dataMap[key];
|
||||
public SpriteConfig 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: e155b2f600a62f64db105359e73bca3b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 界面配置
|
||||
/// </summary>
|
||||
public partial class TbUIFormConfig
|
||||
{
|
||||
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<UIFormType, UIFormConfig>();
|
||||
_dataList = new System.Collections.Generic.List<UIFormConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
UIFormConfig _v;
|
||||
_v = UIFormConfig.DeserializeUIFormConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<UIFormType, UIFormConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<UIFormConfig> DataList => _dataList;
|
||||
|
||||
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)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bada51902477aba40a446ba2655ffa22
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 界面音效配置
|
||||
/// </summary>
|
||||
public partial class TbUISoundConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, UISoundConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<UISoundConfig> _dataList;
|
||||
|
||||
public TbUISoundConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, UISoundConfig>();
|
||||
_dataList = new System.Collections.Generic.List<UISoundConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
UISoundConfig _v;
|
||||
_v = UISoundConfig.DeserializeUISoundConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, UISoundConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<UISoundConfig> DataList => _dataList;
|
||||
|
||||
public UISoundConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public UISoundConfig Get(int key) => _dataMap[key];
|
||||
public UISoundConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b0452b54c190f1a4584930c8a0ae0413
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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
|
||||
{
|
||||
/// <summary>
|
||||
/// 界面配置
|
||||
/// </summary>
|
||||
public partial class TbWeaponConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, WeaponConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<WeaponConfig> _dataList;
|
||||
|
||||
public TbWeaponConfig(ByteBuf _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, WeaponConfig>();
|
||||
_dataList = new System.Collections.Generic.List<WeaponConfig>();
|
||||
|
||||
for(int n = _buf.ReadSize() ; n > 0 ; --n)
|
||||
{
|
||||
WeaponConfig _v;
|
||||
_v = WeaponConfig.DeserializeWeaponConfig(_buf);
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.Id, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, WeaponConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<WeaponConfig> DataList => _dataList;
|
||||
|
||||
public WeaponConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public WeaponConfig Get(int key) => _dataMap[key];
|
||||
public WeaponConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4e8c01c17743604d849ce911da7948d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,76 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 UIFormConfig : Luban.BeanBase
|
||||
{
|
||||
public UIFormConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = (UIFormType)_buf.ReadInt();
|
||||
AssetName = _buf.ReadString();
|
||||
UIGroupName = _buf.ReadString();
|
||||
AllowMultiInstance = _buf.ReadBool();
|
||||
PauseCoveredUIForm = _buf.ReadBool();
|
||||
}
|
||||
|
||||
public static UIFormConfig DeserializeUIFormConfig(ByteBuf _buf)
|
||||
{
|
||||
return new UIFormConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 界面编号
|
||||
/// </summary>
|
||||
public readonly UIFormType Id;
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
public readonly string AssetName;
|
||||
/// <summary>
|
||||
/// 界面组名称
|
||||
/// </summary>
|
||||
public readonly string UIGroupName;
|
||||
/// <summary>
|
||||
/// 是否允许多个界面实例
|
||||
/// </summary>
|
||||
public readonly bool AllowMultiInstance;
|
||||
/// <summary>
|
||||
/// 是否暂停被其覆盖的界面
|
||||
/// </summary>
|
||||
public readonly bool PauseCoveredUIForm;
|
||||
|
||||
public const int __ID__ = 1508218586;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "assetName:" + AssetName + ","
|
||||
+ "UIGroupName:" + UIGroupName + ","
|
||||
+ "allowMultiInstance:" + AllowMultiInstance + ","
|
||||
+ "pauseCoveredUIForm:" + PauseCoveredUIForm + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f1611dcba2dd49442ac8e143537240f8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,70 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
MenuForm = 100,
|
||||
/// <summary>
|
||||
/// 设置界面
|
||||
/// </summary>
|
||||
SettingForm = 101,
|
||||
/// <summary>
|
||||
/// 关于界面
|
||||
/// </summary>
|
||||
AboutForm = 102,
|
||||
/// <summary>
|
||||
/// 开始菜单界面
|
||||
/// </summary>
|
||||
StartMenuForm = 103,
|
||||
/// <summary>
|
||||
/// 选择角色界面
|
||||
/// </summary>
|
||||
SelectRoleForm = 104,
|
||||
/// <summary>
|
||||
/// 商店界面
|
||||
/// </summary>
|
||||
ShopForm = 105,
|
||||
/// <summary>
|
||||
/// 局内HUD界面
|
||||
/// </summary>
|
||||
HudForm = 106,
|
||||
/// <summary>
|
||||
/// 升级奖励界面
|
||||
/// </summary>
|
||||
LevelUpForm = 107,
|
||||
/// <summary>
|
||||
/// 道具详情界面
|
||||
/// </summary>
|
||||
ItemTooltipForm = 108,
|
||||
/// <summary>
|
||||
/// 摇杆界面
|
||||
/// </summary>
|
||||
JoystickForm = 109,
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ffdb580b29ebf014a9da6175d98bbb13
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,69 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 UISoundConfig : Luban.BeanBase
|
||||
{
|
||||
public UISoundConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
AssetName = _buf.ReadString();
|
||||
Priority = _buf.ReadInt();
|
||||
Volume = _buf.ReadFloat();
|
||||
}
|
||||
|
||||
public static UISoundConfig DeserializeUISoundConfig(ByteBuf _buf)
|
||||
{
|
||||
return new UISoundConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 声音编号
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 资源名称
|
||||
/// </summary>
|
||||
public readonly string AssetName;
|
||||
/// <summary>
|
||||
/// 优先级(默认0,128最高,-128最低)
|
||||
/// </summary>
|
||||
public readonly int Priority;
|
||||
/// <summary>
|
||||
/// 音量(0~1)
|
||||
/// </summary>
|
||||
public readonly float Volume;
|
||||
|
||||
public const int __ID__ = 499313149;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "assetName:" + AssetName + ","
|
||||
+ "priority:" + Priority + ","
|
||||
+ "volume:" + Volume + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97871103c14ed3446abbcd458bfd0108
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,117 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 WeaponConfig : Luban.BeanBase
|
||||
{
|
||||
public WeaponConfig(ByteBuf _buf)
|
||||
{
|
||||
Id = _buf.ReadInt();
|
||||
Name = _buf.ReadString();
|
||||
Rarity = (Rarity)_buf.ReadInt();
|
||||
Price = _buf.ReadInt();
|
||||
Attack = _buf.ReadInt();
|
||||
Cooldown = _buf.ReadInt();
|
||||
AttackRange = _buf.ReadInt();
|
||||
AttackSoundId = _buf.ReadInt();
|
||||
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Parameters = new System.Collections.Generic.Dictionary<ParamType, int>(n0 * 3 / 2);for(var i0 = 0 ; i0 < n0 ; i0++) { ParamType _k0; _k0 = (ParamType)_buf.ReadInt(); int _v0; _v0 = _buf.ReadInt(); Parameters.Add(_k0, _v0);}}
|
||||
{int n0 = System.Math.Min(_buf.ReadSize(), _buf.Size);Modifiers = new System.Collections.Generic.List<modifier>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { modifier _e0; _e0 = modifier.Deserializemodifier(_buf); Modifiers.Add(_e0);}}
|
||||
Prefab = _buf.ReadString();
|
||||
Prefab_Ref = null;
|
||||
}
|
||||
|
||||
public static WeaponConfig DeserializeWeaponConfig(ByteBuf _buf)
|
||||
{
|
||||
return new WeaponConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 武器id
|
||||
/// </summary>
|
||||
public readonly int Id;
|
||||
/// <summary>
|
||||
/// 武器名
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// 道具品质
|
||||
/// </summary>
|
||||
public readonly Rarity Rarity;
|
||||
/// <summary>
|
||||
/// 武器价格
|
||||
/// </summary>
|
||||
public readonly int Price;
|
||||
/// <summary>
|
||||
/// 伤害
|
||||
/// </summary>
|
||||
public readonly int Attack;
|
||||
/// <summary>
|
||||
/// 冷却
|
||||
/// </summary>
|
||||
public readonly int Cooldown;
|
||||
/// <summary>
|
||||
/// 范围
|
||||
/// </summary>
|
||||
public readonly int AttackRange;
|
||||
/// <summary>
|
||||
/// 攻击音效编号
|
||||
/// </summary>
|
||||
public readonly int AttackSoundId;
|
||||
/// <summary>
|
||||
/// 参数类型
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.Dictionary<ParamType, int> Parameters;
|
||||
public readonly System.Collections.Generic.List<modifier> Modifiers;
|
||||
/// <summary>
|
||||
/// 预制体
|
||||
/// </summary>
|
||||
public readonly string Prefab;
|
||||
public EntityConfig Prefab_Ref;
|
||||
|
||||
public const int __ID__ = 127041694;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
foreach (var _e in Modifiers) { _e?.ResolveRef(tables); }
|
||||
Prefab_Ref = tables.TbEntityConfig.GetOrDefault(Prefab);
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "id:" + Id + ","
|
||||
+ "name:" + Name + ","
|
||||
+ "rarity:" + Rarity + ","
|
||||
+ "price:" + Price + ","
|
||||
+ "attack:" + Attack + ","
|
||||
+ "cooldown:" + Cooldown + ","
|
||||
+ "attackRange:" + AttackRange + ","
|
||||
+ "attackSoundId:" + AttackSoundId + ","
|
||||
+ "parameters:" + Luban.StringUtil.CollectionToString(Parameters) + ","
|
||||
+ "modifiers:" + Luban.StringUtil.CollectionToString(Modifiers) + ","
|
||||
+ "prefab:" + Prefab + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 04d50a9d8ffeaa74c95e42a3469fcfda
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
{
|
||||
/// <summary>
|
||||
/// 出怪配置
|
||||
/// </summary>
|
||||
public sealed partial class enemySpawnConfig : Luban.BeanBase
|
||||
{
|
||||
public enemySpawnConfig(ByteBuf _buf)
|
||||
{
|
||||
EnemyName = _buf.ReadString();
|
||||
EnemyName_Ref = null;
|
||||
EnemyCount = _buf.ReadInt();
|
||||
Interval = _buf.ReadInt();
|
||||
}
|
||||
|
||||
public static enemySpawnConfig DeserializeenemySpawnConfig(ByteBuf _buf)
|
||||
{
|
||||
return new enemySpawnConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 要出的怪名
|
||||
/// </summary>
|
||||
public readonly string EnemyName;
|
||||
public EnemyConfig EnemyName_Ref;
|
||||
/// <summary>
|
||||
/// 一次出的数量
|
||||
/// </summary>
|
||||
public readonly int EnemyCount;
|
||||
/// <summary>
|
||||
/// 每次出怪的间隔
|
||||
/// </summary>
|
||||
public readonly int Interval;
|
||||
|
||||
public const int __ID__ = -1182208523;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
EnemyName_Ref = tables.TbEnemyConfig.GetOrDefault(EnemyName);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "enemyName:" + EnemyName + ","
|
||||
+ "enemyCount:" + EnemyCount + ","
|
||||
+ "interval:" + Interval + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 38062314e7ee6f54aa545b69238b0831
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,65 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
{
|
||||
/// <summary>
|
||||
/// 修饰器
|
||||
/// </summary>
|
||||
public sealed partial class modifier : Luban.BeanBase
|
||||
{
|
||||
public modifier(ByteBuf _buf)
|
||||
{
|
||||
Key = (StatType)_buf.ReadInt();
|
||||
Value = _buf.ReadInt();
|
||||
IsPercent = _buf.ReadBool();
|
||||
}
|
||||
|
||||
public static modifier Deserializemodifier(ByteBuf _buf)
|
||||
{
|
||||
return new modifier(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 属性类型
|
||||
/// </summary>
|
||||
public readonly StatType Key;
|
||||
/// <summary>
|
||||
/// 值
|
||||
/// </summary>
|
||||
public readonly int Value;
|
||||
/// <summary>
|
||||
/// 是否为百分比
|
||||
/// </summary>
|
||||
public readonly bool IsPercent;
|
||||
|
||||
public const int __ID__ = -615513385;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "key:" + Key + ","
|
||||
+ "value:" + Value + ","
|
||||
+ "isPercent:" + IsPercent + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ada21588e4a8b724ba4a76c76d36b615
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user