1
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class Audio : Luban.BeanBase
|
||||
{
|
||||
public Audio(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["AudioID"].IsNumber) { throw new SerializationException(); } AudioID = _buf["AudioID"]; }
|
||||
{ if(!_buf["AudioResourcesPath"].IsString) { throw new SerializationException(); } AudioResourcesPath = _buf["AudioResourcesPath"]; }
|
||||
}
|
||||
|
||||
public static Audio DeserializeAudio(JSONNode _buf)
|
||||
{
|
||||
return new Audio(_buf);
|
||||
}
|
||||
|
||||
public readonly int AudioID;
|
||||
/// <summary>
|
||||
/// 位置
|
||||
/// </summary>
|
||||
public readonly string AudioResourcesPath;
|
||||
|
||||
public const int __ID__ = 63613878;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "AudioID:" + AudioID + ","
|
||||
+ "AudioResourcesPath:" + AudioResourcesPath + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class BulletResources : Luban.BeanBase
|
||||
{
|
||||
public BulletResources(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["bulletNumber"].IsNumber) { throw new SerializationException(); } BulletNumber = _buf["bulletNumber"]; }
|
||||
{ if(!_buf["prefabBulletResourcesPath"].IsString) { throw new SerializationException(); } PrefabBulletResourcesPath = _buf["prefabBulletResourcesPath"]; }
|
||||
{ if(!_buf["attackFX"].IsNumber) { throw new SerializationException(); } AttackFX = _buf["attackFX"]; }
|
||||
}
|
||||
|
||||
public static BulletResources DeserializeBulletResources(JSONNode _buf)
|
||||
{
|
||||
return new BulletResources(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 子弹编号 末位1正常子弹 2双头蛋 3激光
|
||||
/// </summary>
|
||||
public readonly int BulletNumber;
|
||||
/// <summary>
|
||||
/// 预制体名字
|
||||
/// </summary>
|
||||
public readonly string PrefabBulletResourcesPath;
|
||||
/// <summary>
|
||||
/// 击中特效
|
||||
/// </summary>
|
||||
public readonly int AttackFX;
|
||||
|
||||
public const int __ID__ = -1276660957;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "bulletNumber:" + BulletNumber + ","
|
||||
+ "prefabBulletResourcesPath:" + PrefabBulletResourcesPath + ","
|
||||
+ "attackFX:" + AttackFX + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class EffectFXResources : Luban.BeanBase
|
||||
{
|
||||
public EffectFXResources(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["FXNumber"].IsNumber) { throw new SerializationException(); } FXNumber = _buf["FXNumber"]; }
|
||||
{ if(!_buf["prefabFXResourcesPath"].IsString) { throw new SerializationException(); } PrefabFXResourcesPath = _buf["prefabFXResourcesPath"]; }
|
||||
}
|
||||
|
||||
public static EffectFXResources DeserializeEffectFXResources(JSONNode _buf)
|
||||
{
|
||||
return new EffectFXResources(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 特效id
|
||||
/// </summary>
|
||||
public readonly int FXNumber;
|
||||
/// <summary>
|
||||
/// 预制体名字
|
||||
/// </summary>
|
||||
public readonly string PrefabFXResourcesPath;
|
||||
|
||||
public const int __ID__ = -234540254;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "FXNumber:" + FXNumber + ","
|
||||
+ "prefabFXResourcesPath:" + PrefabFXResourcesPath + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class FishResources : Luban.BeanBase
|
||||
{
|
||||
public FishResources(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["fishNumber"].IsNumber) { throw new SerializationException(); } FishNumber = _buf["fishNumber"]; }
|
||||
{ if(!_buf["prefabFishResourcesPath"].IsString) { throw new SerializationException(); } PrefabFishResourcesPath = _buf["prefabFishResourcesPath"]; }
|
||||
{ var __json0 = _buf["showAudio"]; if(!__json0.IsArray) { throw new SerializationException(); } ShowAudio = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ShowAudio.Add(__v0); } }
|
||||
{ var __json0 = _buf["moveAudio"]; if(!__json0.IsArray) { throw new SerializationException(); } MoveAudio = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MoveAudio.Add(__v0); } }
|
||||
{ var __json0 = _buf["dieAudio"]; if(!__json0.IsArray) { throw new SerializationException(); } DieAudio = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DieAudio.Add(__v0); } }
|
||||
{ var __json0 = _buf["dieGlodAduio"]; if(!__json0.IsArray) { throw new SerializationException(); } DieGlodAduio = new System.Collections.Generic.Dictionary<string, int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string _k0; { if(!__e0[0].IsString) { throw new SerializationException(); } _k0 = __e0[0]; } int _v0; { if(!__e0[1].IsNumber) { throw new SerializationException(); } _v0 = __e0[1]; } DieGlodAduio.Add(_k0, _v0); } }
|
||||
{ if(!_buf["layer"].IsNumber) { throw new SerializationException(); } Layer = _buf["layer"]; }
|
||||
{ if(!_buf["boardText"].IsString) { throw new SerializationException(); } BoardText = _buf["boardText"]; }
|
||||
{ if(!_buf["dieEffectAssets"].IsString) { throw new SerializationException(); } DieEffectAssets = _buf["dieEffectAssets"]; }
|
||||
}
|
||||
|
||||
public static FishResources DeserializeFishResources(JSONNode _buf)
|
||||
{
|
||||
return new FishResources(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 鱼编号
|
||||
/// </summary>
|
||||
public readonly int FishNumber;
|
||||
/// <summary>
|
||||
/// 预制体名字
|
||||
/// </summary>
|
||||
public readonly string PrefabFishResourcesPath;
|
||||
/// <summary>
|
||||
/// 出场音频
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<int> ShowAudio;
|
||||
/// <summary>
|
||||
/// 移动音频
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<int> MoveAudio;
|
||||
/// <summary>
|
||||
/// 死亡音效 1,2,3
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.List<int> DieAudio;
|
||||
/// <summary>
|
||||
/// 爆奖音效
|
||||
/// </summary>
|
||||
public readonly System.Collections.Generic.Dictionary<string, int> DieGlodAduio;
|
||||
/// <summary>
|
||||
/// 生物层级
|
||||
/// </summary>
|
||||
public readonly int Layer;
|
||||
/// <summary>
|
||||
/// 出场播报
|
||||
/// </summary>
|
||||
public readonly string BoardText;
|
||||
/// <summary>
|
||||
/// 死亡特效资源路径
|
||||
/// </summary>
|
||||
public readonly string DieEffectAssets;
|
||||
|
||||
public const int __ID__ = -2122204531;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "fishNumber:" + FishNumber + ","
|
||||
+ "prefabFishResourcesPath:" + PrefabFishResourcesPath + ","
|
||||
+ "showAudio:" + Luban.StringUtil.CollectionToString(ShowAudio) + ","
|
||||
+ "moveAudio:" + Luban.StringUtil.CollectionToString(MoveAudio) + ","
|
||||
+ "dieAudio:" + Luban.StringUtil.CollectionToString(DieAudio) + ","
|
||||
+ "dieGlodAduio:" + Luban.StringUtil.CollectionToString(DieGlodAduio) + ","
|
||||
+ "layer:" + Layer + ","
|
||||
+ "boardText:" + BoardText + ","
|
||||
+ "dieEffectAssets:" + DieEffectAssets + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class FishYZ : Luban.BeanBase
|
||||
{
|
||||
public FishYZ(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["yzNumber"].IsNumber) { throw new SerializationException(); } YzNumber = _buf["yzNumber"]; }
|
||||
{ var __json0 = _buf["lineList"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; LineList = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } LineList[__index0++] = __v0; } }
|
||||
{ if(!_buf["count"].IsNumber) { throw new SerializationException(); } Count = _buf["count"]; }
|
||||
}
|
||||
|
||||
public static FishYZ DeserializeFishYZ(JSONNode _buf)
|
||||
{
|
||||
return new FishYZ(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 鱼镇id
|
||||
/// </summary>
|
||||
public readonly int YzNumber;
|
||||
/// <summary>
|
||||
/// 鱼镇路线列表
|
||||
/// </summary>
|
||||
public readonly int[] LineList;
|
||||
/// <summary>
|
||||
/// 鱼数量
|
||||
/// </summary>
|
||||
public readonly int Count;
|
||||
|
||||
public const int __ID__ = 2104539033;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "yzNumber:" + YzNumber + ","
|
||||
+ "lineList:" + Luban.StringUtil.CollectionToString(LineList) + ","
|
||||
+ "count:" + Count + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class MediaConfig : Luban.BeanBase
|
||||
{
|
||||
public MediaConfig(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["fishNumber"].IsNumber) { throw new SerializationException(); } FishNumber = _buf["fishNumber"]; }
|
||||
{ if(!_buf["mediaType"].IsString) { throw new SerializationException(); } MediaType = _buf["mediaType"]; }
|
||||
}
|
||||
|
||||
public static MediaConfig DeserializeMediaConfig(JSONNode _buf)
|
||||
{
|
||||
return new MediaConfig(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 媒体编号
|
||||
/// </summary>
|
||||
public readonly int FishNumber;
|
||||
/// <summary>
|
||||
/// 预制体名字
|
||||
/// </summary>
|
||||
public readonly string MediaType;
|
||||
|
||||
public const int __ID__ = 867896358;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "fishNumber:" + FishNumber + ","
|
||||
+ "mediaType:" + MediaType + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class MediaResources : Luban.BeanBase
|
||||
{
|
||||
public MediaResources(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["fishNumber"].IsNumber) { throw new SerializationException(); } FishNumber = _buf["fishNumber"]; }
|
||||
{ if(!_buf["prefabFishResourcesPath"].IsString) { throw new SerializationException(); } PrefabFishResourcesPath = _buf["prefabFishResourcesPath"]; }
|
||||
}
|
||||
|
||||
public static MediaResources DeserializeMediaResources(JSONNode _buf)
|
||||
{
|
||||
return new MediaResources(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 媒体编号
|
||||
/// </summary>
|
||||
public readonly int FishNumber;
|
||||
/// <summary>
|
||||
/// 预制体名字
|
||||
/// </summary>
|
||||
public readonly string PrefabFishResourcesPath;
|
||||
|
||||
public const int __ID__ = -1381246271;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "fishNumber:" + FishNumber + ","
|
||||
+ "prefabFishResourcesPath:" + PrefabFishResourcesPath + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
using SimpleJSON;
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class Tables
|
||||
{
|
||||
public TbAudio TbAudio {get; }
|
||||
public TbBulletResources TbBulletResources {get; }
|
||||
public TbEffectFXResources TbEffectFXResources {get; }
|
||||
public TbFishResources TbFishResources {get; }
|
||||
public TbFishYZ TbFishYZ {get; }
|
||||
public TbMediaConfig TbMediaConfig {get; }
|
||||
public TbMediaResources TbMediaResources {get; }
|
||||
public TbTurretResources TbTurretResources {get; }
|
||||
|
||||
public Tables(System.Func<string, JSONNode> loader)
|
||||
{
|
||||
TbAudio = new TbAudio(loader("tbaudio"));
|
||||
TbBulletResources = new TbBulletResources(loader("tbbulletresources"));
|
||||
TbEffectFXResources = new TbEffectFXResources(loader("tbeffectfxresources"));
|
||||
TbFishResources = new TbFishResources(loader("tbfishresources"));
|
||||
TbFishYZ = new TbFishYZ(loader("tbfishyz"));
|
||||
TbMediaConfig = new TbMediaConfig(loader("tbmediaconfig"));
|
||||
TbMediaResources = new TbMediaResources(loader("tbmediaresources"));
|
||||
TbTurretResources = new TbTurretResources(loader("tbturretresources"));
|
||||
ResolveRef();
|
||||
}
|
||||
|
||||
private void ResolveRef()
|
||||
{
|
||||
TbAudio.ResolveRef(this);
|
||||
TbBulletResources.ResolveRef(this);
|
||||
TbEffectFXResources.ResolveRef(this);
|
||||
TbFishResources.ResolveRef(this);
|
||||
TbFishYZ.ResolveRef(this);
|
||||
TbMediaConfig.ResolveRef(this);
|
||||
TbMediaResources.ResolveRef(this);
|
||||
TbTurretResources.ResolveRef(this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbAudio
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, Audio> _dataMap;
|
||||
private readonly System.Collections.Generic.List<Audio> _dataList;
|
||||
|
||||
public TbAudio(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, Audio>();
|
||||
_dataList = new System.Collections.Generic.List<Audio>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
Audio _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.Audio.DeserializeAudio(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.AudioID, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, Audio> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<Audio> DataList => _dataList;
|
||||
|
||||
public Audio GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public Audio Get(int key) => _dataMap[key];
|
||||
public Audio this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbBulletResources
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, BulletResources> _dataMap;
|
||||
private readonly System.Collections.Generic.List<BulletResources> _dataList;
|
||||
|
||||
public TbBulletResources(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, BulletResources>();
|
||||
_dataList = new System.Collections.Generic.List<BulletResources>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
BulletResources _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.BulletResources.DeserializeBulletResources(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.BulletNumber, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, BulletResources> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<BulletResources> DataList => _dataList;
|
||||
|
||||
public BulletResources GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public BulletResources Get(int key) => _dataMap[key];
|
||||
public BulletResources this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbEffectFXResources
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, EffectFXResources> _dataMap;
|
||||
private readonly System.Collections.Generic.List<EffectFXResources> _dataList;
|
||||
|
||||
public TbEffectFXResources(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, EffectFXResources>();
|
||||
_dataList = new System.Collections.Generic.List<EffectFXResources>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
EffectFXResources _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.EffectFXResources.DeserializeEffectFXResources(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.FXNumber, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, EffectFXResources> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<EffectFXResources> DataList => _dataList;
|
||||
|
||||
public EffectFXResources GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public EffectFXResources Get(int key) => _dataMap[key];
|
||||
public EffectFXResources this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbFishResources
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, FishResources> _dataMap;
|
||||
private readonly System.Collections.Generic.List<FishResources> _dataList;
|
||||
|
||||
public TbFishResources(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, FishResources>();
|
||||
_dataList = new System.Collections.Generic.List<FishResources>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
FishResources _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.FishResources.DeserializeFishResources(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.FishNumber, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, FishResources> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<FishResources> DataList => _dataList;
|
||||
|
||||
public FishResources GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public FishResources Get(int key) => _dataMap[key];
|
||||
public FishResources this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbFishYZ
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, FishYZ> _dataMap;
|
||||
private readonly System.Collections.Generic.List<FishYZ> _dataList;
|
||||
|
||||
public TbFishYZ(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, FishYZ>();
|
||||
_dataList = new System.Collections.Generic.List<FishYZ>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
FishYZ _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.FishYZ.DeserializeFishYZ(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.YzNumber, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, FishYZ> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<FishYZ> DataList => _dataList;
|
||||
|
||||
public FishYZ GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public FishYZ Get(int key) => _dataMap[key];
|
||||
public FishYZ this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbMediaConfig
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, MediaConfig> _dataMap;
|
||||
private readonly System.Collections.Generic.List<MediaConfig> _dataList;
|
||||
|
||||
public TbMediaConfig(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, MediaConfig>();
|
||||
_dataList = new System.Collections.Generic.List<MediaConfig>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
MediaConfig _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.MediaConfig.DeserializeMediaConfig(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.FishNumber, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, MediaConfig> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<MediaConfig> DataList => _dataList;
|
||||
|
||||
public MediaConfig GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public MediaConfig Get(int key) => _dataMap[key];
|
||||
public MediaConfig this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbMediaResources
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, MediaResources> _dataMap;
|
||||
private readonly System.Collections.Generic.List<MediaResources> _dataList;
|
||||
|
||||
public TbMediaResources(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, MediaResources>();
|
||||
_dataList = new System.Collections.Generic.List<MediaResources>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
MediaResources _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.MediaResources.DeserializeMediaResources(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.FishNumber, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, MediaResources> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<MediaResources> DataList => _dataList;
|
||||
|
||||
public MediaResources GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public MediaResources Get(int key) => _dataMap[key];
|
||||
public MediaResources this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial class TbTurretResources
|
||||
{
|
||||
private readonly System.Collections.Generic.Dictionary<int, TurretResources> _dataMap;
|
||||
private readonly System.Collections.Generic.List<TurretResources> _dataList;
|
||||
|
||||
public TbTurretResources(JSONNode _buf)
|
||||
{
|
||||
_dataMap = new System.Collections.Generic.Dictionary<int, TurretResources>();
|
||||
_dataList = new System.Collections.Generic.List<TurretResources>();
|
||||
|
||||
foreach(JSONNode _ele in _buf.Children)
|
||||
{
|
||||
TurretResources _v;
|
||||
{ if(!_ele.IsObject) { throw new SerializationException(); } _v = global::cfg.TurretResources.DeserializeTurretResources(_ele); }
|
||||
_dataList.Add(_v);
|
||||
_dataMap.Add(_v.TurretNumber, _v);
|
||||
}
|
||||
}
|
||||
|
||||
public System.Collections.Generic.Dictionary<int, TurretResources> DataMap => _dataMap;
|
||||
public System.Collections.Generic.List<TurretResources> DataList => _dataList;
|
||||
|
||||
public TurretResources GetOrDefault(int key) => _dataMap.TryGetValue(key, out var v) ? v : null;
|
||||
public TurretResources Get(int key) => _dataMap[key];
|
||||
public TurretResources this[int key] => _dataMap[key];
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
foreach(var _v in _dataList)
|
||||
{
|
||||
_v.ResolveRef(tables);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public sealed partial class TurretResources : Luban.BeanBase
|
||||
{
|
||||
public TurretResources(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["turretNumber"].IsNumber) { throw new SerializationException(); } TurretNumber = _buf["turretNumber"]; }
|
||||
{ if(!_buf["turretType"].IsNumber) { throw new SerializationException(); } TurretType = _buf["turretType"]; }
|
||||
{ if(!_buf["prefabTurretResourcesPath"].IsString) { throw new SerializationException(); } PrefabTurretResourcesPath = _buf["prefabTurretResourcesPath"]; }
|
||||
{ if(!_buf["animationType"].IsNumber) { throw new SerializationException(); } AnimationType = _buf["animationType"]; }
|
||||
{ if(!_buf["attackAudio"].IsNumber) { throw new SerializationException(); } AttackAudio = _buf["attackAudio"]; }
|
||||
}
|
||||
|
||||
public static TurretResources DeserializeTurretResources(JSONNode _buf)
|
||||
{
|
||||
return new TurretResources(_buf);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 炮台编号
|
||||
/// </summary>
|
||||
public readonly int TurretNumber;
|
||||
/// <summary>
|
||||
/// 类型 1普通炮台 2战神 3翅膀
|
||||
/// </summary>
|
||||
public readonly int TurretType;
|
||||
/// <summary>
|
||||
/// 预制体名字
|
||||
/// </summary>
|
||||
public readonly string PrefabTurretResourcesPath;
|
||||
/// <summary>
|
||||
/// 动画类型1spine 2animator 3 animation
|
||||
/// </summary>
|
||||
public readonly int AnimationType;
|
||||
/// <summary>
|
||||
/// 攻击音效
|
||||
/// </summary>
|
||||
public readonly int AttackAudio;
|
||||
|
||||
public const int __ID__ = -896453899;
|
||||
public override int GetTypeId() => __ID__;
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "turretNumber:" + TurretNumber + ","
|
||||
+ "turretType:" + TurretType + ","
|
||||
+ "prefabTurretResourcesPath:" + PrefabTurretResourcesPath + ","
|
||||
+ "animationType:" + AnimationType + ","
|
||||
+ "attackAudio:" + AttackAudio + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using Luban;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial struct vector2
|
||||
{
|
||||
public vector2(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
|
||||
{ if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
|
||||
}
|
||||
|
||||
public static vector2 Deserializevector2(JSONNode _buf)
|
||||
{
|
||||
return new vector2(_buf);
|
||||
}
|
||||
|
||||
public readonly float X;
|
||||
public readonly float Y;
|
||||
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "x:" + X + ","
|
||||
+ "y:" + Y + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial struct vector3
|
||||
{
|
||||
public vector3(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
|
||||
{ if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
|
||||
{ if(!_buf["z"].IsNumber) { throw new SerializationException(); } Z = _buf["z"]; }
|
||||
}
|
||||
|
||||
public static vector3 Deserializevector3(JSONNode _buf)
|
||||
{
|
||||
return new vector3(_buf);
|
||||
}
|
||||
|
||||
public readonly float X;
|
||||
public readonly float Y;
|
||||
public readonly float Z;
|
||||
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "x:" + X + ","
|
||||
+ "y:" + Y + ","
|
||||
+ "z:" + Z + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
using SimpleJSON;
|
||||
|
||||
|
||||
namespace cfg
|
||||
{
|
||||
public partial struct vector4
|
||||
{
|
||||
public vector4(JSONNode _buf)
|
||||
{
|
||||
{ if(!_buf["x"].IsNumber) { throw new SerializationException(); } X = _buf["x"]; }
|
||||
{ if(!_buf["y"].IsNumber) { throw new SerializationException(); } Y = _buf["y"]; }
|
||||
{ if(!_buf["z"].IsNumber) { throw new SerializationException(); } Z = _buf["z"]; }
|
||||
{ if(!_buf["w"].IsNumber) { throw new SerializationException(); } W = _buf["w"]; }
|
||||
}
|
||||
|
||||
public static vector4 Deserializevector4(JSONNode _buf)
|
||||
{
|
||||
return new vector4(_buf);
|
||||
}
|
||||
|
||||
public readonly float X;
|
||||
public readonly float Y;
|
||||
public readonly float Z;
|
||||
public readonly float W;
|
||||
|
||||
|
||||
public void ResolveRef(Tables tables)
|
||||
{
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return "{ "
|
||||
+ "x:" + X + ","
|
||||
+ "y:" + Y + ","
|
||||
+ "z:" + Z + ","
|
||||
+ "w:" + W + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user