【配置表】更新导表规则
parent
a8a2976ca5
commit
b271b1b529
|
|
@ -10,5 +10,36 @@ namespace Framework.Utils
|
|||
{
|
||||
return scene.GetRootGameObjects().FirstOrDefault(root => root.GetComponent<T>() != null)?.GetComponent<T>();
|
||||
}
|
||||
|
||||
public static T BinaryDeepClone<T>(T data) where T : class
|
||||
{
|
||||
if (data == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
using (var memoryStream = new System.IO.MemoryStream())
|
||||
{
|
||||
var formatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
|
||||
formatter.Serialize(memoryStream, data);
|
||||
memoryStream.Seek(0, System.IO.SeekOrigin.Begin);
|
||||
return (T)formatter.Deserialize(memoryStream);
|
||||
}
|
||||
}
|
||||
|
||||
public static T JsonDeepClone<T>(T data) where T : class
|
||||
{
|
||||
if (data == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var json = LitJson.JsonMapper.ToJson(data);
|
||||
if (string.IsNullOrEmpty(json))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
return LitJson.JsonMapper.ToObject<T>(json);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
using System.Collections.Generic;
|
||||
namespace Framework.Utils
|
||||
{
|
||||
public static class ListEx
|
||||
{
|
||||
|
||||
public static string ToSimpleString<T>(this List<T> list)
|
||||
{
|
||||
if (list == null)
|
||||
{
|
||||
return "null";
|
||||
}
|
||||
|
||||
var sb = new System.Text.StringBuilder();
|
||||
sb.Append("[");
|
||||
for (int i = 0; i < list.Count; i++)
|
||||
{
|
||||
sb.Append(list[i]);
|
||||
if (i < list.Count - 1)
|
||||
{
|
||||
sb.Append(", ");
|
||||
}
|
||||
}
|
||||
sb.Append("]");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 143e14b29d0b4fb49a95cbb6d95ae62b
|
||||
timeCreated: 1747903295
|
||||
|
|
@ -15,8 +15,11 @@ namespace cfg.AICfg
|
|||
{
|
||||
public sealed partial class DataAISkillControll : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataAISkillControll(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["CheckTime"].IsNumber) { throw new SerializationException(); } CheckTime = _buf["CheckTime"]; }
|
||||
{ if(!_buf["CheckDistance"].IsNumber) { throw new SerializationException(); } CheckDistance = _buf["CheckDistance"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataActivity : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataActivity(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (ActorCfg.ActivityType)_buf["Type"].AsInt; }
|
||||
{ if(!_buf["BornDayCount"].IsNumber) { throw new SerializationException(); } BornDayCount = _buf["BornDayCount"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataActivityActorTest : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataActivityActorTest(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ var __json0 = _buf["TaskIDs0"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; TaskIDs0 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } TaskIDs0[__index0++] = __v0; } }
|
||||
{ var __json0 = _buf["TaskIDs1"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; TaskIDs1 = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } TaskIDs1[__index0++] = __v0; } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataActivityDoubleReward : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataActivityDoubleReward(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ var __json0 = _buf["LevelType"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; LevelType = new LevelCfg.E_LevelType[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { LevelCfg.E_LevelType __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = (LevelCfg.E_LevelType)__e0.AsInt; } LevelType[__index0++] = __v0; } }
|
||||
{ if(!_buf["Bonus"].IsNumber) { throw new SerializationException(); } Bonus = _buf["Bonus"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataActivitySevenDaySign : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataActivitySevenDaySign(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ var __json0 = _buf["Rewards"]; if(!__json0.IsArray) { throw new SerializationException(); } Rewards = new System.Collections.Generic.List<item.ItemCounts>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { item.ItemCounts __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = global::cfg.item.ItemCounts.DeserializeItemCounts(__e0); } Rewards.Add(__v0); } }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataActorLevel : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataActorLevel(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Level"].IsNumber) { throw new SerializationException(); } Level = _buf["Level"]; }
|
||||
{ if(!_buf["Exp"].IsNumber) { throw new SerializationException(); } Exp = _buf["Exp"]; }
|
||||
{ if(!_buf["MaxEnergy"].IsNumber) { throw new SerializationException(); } MaxEnergy = _buf["MaxEnergy"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataAlbum : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataAlbum(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["CoverPath"].IsString) { throw new SerializationException(); } CoverPath = _buf["CoverPath"]; }
|
||||
{ if(!_buf["TapesPath"].IsString) { throw new SerializationException(); } TapesPath = _buf["TapesPath"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataCategory : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCategory(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ if(!_buf["ItemType"].IsNumber) { throw new SerializationException(); } ItemType = (ActorCfg.StorageItemType)_buf["ItemType"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataGacha : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataGacha(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["GachaType"].IsString) { throw new SerializationException(); } GachaType = _buf["GachaType"]; }
|
||||
{ if(!_buf["NameKey"].IsString) { throw new SerializationException(); } NameKey = _buf["NameKey"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataGachaDetail : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataGachaDetail(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ var __json0 = _buf["ListCharacterId"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; ListCharacterId = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ListCharacterId[__index0++] = __v0; } }
|
||||
{ if(!_buf["Percentage"].IsNumber) { throw new SerializationException(); } Percentage = _buf["Percentage"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataHolidays : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataHolidays(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Month"].IsNumber) { throw new SerializationException(); } Month = _buf["Month"]; }
|
||||
{ if(!_buf["Day"].IsNumber) { throw new SerializationException(); } Day = _buf["Day"]; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataItem : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataItem(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (ActorCfg.ItemType)_buf["Type"].AsInt; }
|
||||
{ if(!_buf["NameLocal"].IsString) { throw new SerializationException(); } NameLocal = _buf["NameLocal"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataMail : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataMail(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["Desc"].IsString) { throw new SerializationException(); } Desc = _buf["Desc"]; }
|
||||
{ if(!_buf["TitleLo"].IsString) { throw new SerializationException(); } TitleLo = _buf["TitleLo"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataMedal : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataMedal(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _buf["ItemID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataMonthlyPass : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataMonthlyPass(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["PassProductID"].IsNumber) { throw new SerializationException(); } PassProductID = _buf["PassProductID"]; }
|
||||
{ var __json0 = _buf["DirectlyExtraRewards"]; if(!__json0.IsArray) { throw new SerializationException(); } DirectlyExtraRewards = new System.Collections.Generic.List<item.ItemCounts>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { item.ItemCounts __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = global::cfg.item.ItemCounts.DeserializeItemCounts(__e0); } DirectlyExtraRewards.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataPlayerSkillLayer : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPlayerSkillLayer(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ var __json0 = _buf["Unlock"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; Unlock = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Unlock[__index0++] = __v0; } }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataPlayerSkillUpgrade : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPlayerSkillUpgrade(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Level"].IsNumber) { throw new SerializationException(); } Level = _buf["Level"]; }
|
||||
{ if(!_buf["MaxLevel"].IsNumber) { throw new SerializationException(); } MaxLevel = _buf["MaxLevel"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataPvpDayRewards : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPvpDayRewards(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["OrderStart"].IsNumber) { throw new SerializationException(); } OrderStart = _buf["OrderStart"]; }
|
||||
{ if(!_buf["OrderEnd"].IsNumber) { throw new SerializationException(); } OrderEnd = _buf["OrderEnd"]; }
|
||||
{ var __json0 = _buf["RewardItems"]; if(!__json0.IsArray) { throw new SerializationException(); } RewardItems = new System.Collections.Generic.List<item.ItemCounts>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { item.ItemCounts __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = global::cfg.item.ItemCounts.DeserializeItemCounts(__e0); } RewardItems.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataPvpMonthRewards : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPvpMonthRewards(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["OrderStart"].IsNumber) { throw new SerializationException(); } OrderStart = _buf["OrderStart"]; }
|
||||
{ if(!_buf["OrderEnd"].IsNumber) { throw new SerializationException(); } OrderEnd = _buf["OrderEnd"]; }
|
||||
{ var __json0 = _buf["RewardItems"]; if(!__json0.IsArray) { throw new SerializationException(); } RewardItems = new System.Collections.Generic.List<item.ItemCounts>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { item.ItemCounts __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = global::cfg.item.ItemCounts.DeserializeItemCounts(__e0); } RewardItems.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataPvpWeekRewards : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPvpWeekRewards(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["OrderStart"].IsNumber) { throw new SerializationException(); } OrderStart = _buf["OrderStart"]; }
|
||||
{ if(!_buf["OrderEnd"].IsNumber) { throw new SerializationException(); } OrderEnd = _buf["OrderEnd"]; }
|
||||
{ var __json0 = _buf["RewardItems"]; if(!__json0.IsArray) { throw new SerializationException(); } RewardItems = new System.Collections.Generic.List<item.ItemCounts>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { item.ItemCounts __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = global::cfg.item.ItemCounts.DeserializeItemCounts(__e0); } RewardItems.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataRewards : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataRewards(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["RewardType"].IsNumber) { throw new SerializationException(); } RewardType = (ActorCfg.RewardType)_buf["RewardType"].AsInt; }
|
||||
{ if(!_buf["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _buf["ItemID"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataSchedule : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataSchedule(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (ActorCfg.ScheduleType)_buf["Type"].AsInt; }
|
||||
{ if(!_buf["StartTime"].IsString) { throw new SerializationException(); } StartTime = _buf["StartTime"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataShop : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataShop(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ if(!_buf["ShopType"].IsNumber) { throw new SerializationException(); } ShopType = (ActorCfg.ShopType)_buf["ShopType"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataShopContent : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataShopContent(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["NameLocal"].IsString) { throw new SerializationException(); } NameLocal = _buf["NameLocal"]; }
|
||||
{ if(!_buf["IsLimitTime"].IsNumber) { throw new SerializationException(); } IsLimitTime = _buf["IsLimitTime"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataSign : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataSign(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ var __json0 = _buf["Rewards"]; if(!__json0.IsArray) { throw new SerializationException(); } Rewards = new System.Collections.Generic.List<item.ItemCounts>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { item.ItemCounts __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = global::cfg.item.ItemCounts.DeserializeItemCounts(__e0); } Rewards.Add(__v0); } }
|
||||
{ if(!_buf["CountID"].IsNumber) { throw new SerializationException(); } CountID = _buf["CountID"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataTaskActivity : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataTaskActivity(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (ActorCfg.TaskActivityType)_buf["Type"].AsInt; }
|
||||
{ if(!_buf["Score"].IsNumber) { throw new SerializationException(); } Score = _buf["Score"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataTaskMain : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataTaskMain(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["FunctionType"].IsNumber) { throw new SerializationException(); } FunctionType = (ActorCfg.FunctionType)_buf["FunctionType"].AsInt; }
|
||||
{ if(!_buf["TaskType"].IsNumber) { throw new SerializationException(); } TaskType = (ActorCfg.TaskType)_buf["TaskType"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataTeamMark : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataTeamMark(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _buf["ItemID"]; }
|
||||
{ if(!_buf["NameLocal"].IsString) { throw new SerializationException(); } NameLocal = _buf["NameLocal"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ActorCfg
|
|||
{
|
||||
public sealed partial class DataVehicleUpgrade : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataVehicleUpgrade(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["UpgradeType"].IsNumber) { throw new SerializationException(); } UpgradeType = (ActorCfg.VihecleUpgradeType)_buf["UpgradeType"].AsInt; }
|
||||
{ if(!_buf["MaxCount"].IsNumber) { throw new SerializationException(); } MaxCount = _buf["MaxCount"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.AreaCfg
|
|||
{
|
||||
public sealed partial class DataArea : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataArea(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ if(!_buf["DESC"].IsString) { throw new SerializationException(); } DESC = _buf["DESC"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.AudioCfg
|
|||
{
|
||||
public sealed partial class DataAudio : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataAudio(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Key"].IsString) { throw new SerializationException(); } Key = _buf["Key"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (AudioCfg.AudioType)_buf["Type"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.AudioCfg
|
|||
{
|
||||
public sealed partial class DataAudioSource : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataAudioSource(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Key"].IsString) { throw new SerializationException(); } Key = _buf["Key"]; }
|
||||
{ if(!_buf["Path"].IsString) { throw new SerializationException(); } Path = _buf["Path"]; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.BattlePassCfg
|
|||
{
|
||||
public sealed partial class DataBattlePass : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataBattlePass(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["PointItem"].IsNumber) { throw new SerializationException(); } PointItem = _buf["PointItem"]; }
|
||||
{ if(!_buf["MaxPurchaseLevel"].IsNumber) { throw new SerializationException(); } MaxPurchaseLevel = _buf["MaxPurchaseLevel"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.BattlePassCfg
|
|||
{
|
||||
public sealed partial class DataBattlePassRewards : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataBattlePassRewards(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["PassLevel"].IsNumber) { throw new SerializationException(); } PassLevel = _buf["PassLevel"]; }
|
||||
{ var __json0 = _buf["BasicReward"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; BasicReward = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BasicReward[__index0++] = __v0; } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.BoundsCfg
|
|||
{
|
||||
public sealed partial class DataBounds : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataBounds(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["BoundTag"].IsNumber) { throw new SerializationException(); } BoundTag = (CharacterCfg.Efaction)_buf["BoundTag"].AsInt; }
|
||||
{ if(!_buf["TriggerCount"].IsNumber) { throw new SerializationException(); } TriggerCount = _buf["TriggerCount"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.BuffCfg
|
|||
{
|
||||
public sealed partial class DataBuff : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataBuff(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ if(!_buf["GroupId"].IsNumber) { throw new SerializationException(); } GroupId = _buf["GroupId"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.BulletCfg
|
|||
{
|
||||
public sealed partial class DataBullet : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataBullet(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ if(!_buf["BulletType"].IsNumber) { throw new SerializationException(); } BulletType = _buf["BulletType"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CampCfg
|
|||
{
|
||||
public sealed partial class DataCampObject : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCampObject(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["GridType"].IsNumber) { throw new SerializationException(); } GridType = (CampCfg.E_CampGrid)_buf["GridType"].AsInt; }
|
||||
{ var __json0 = _buf["ListPosOffset"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; ListPosOffset = new vector2[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { vector2 __v0; { if(!__e0.IsObject) { throw new SerializationException(); } __v0 = global::cfg.vector2.Deserializevector2(__e0); } ListPosOffset[__index0++] = __v0; } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataArmyAttri : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataArmyAttri(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Army"].IsNumber) { throw new SerializationException(); } Army = _buf["Army"]; }
|
||||
{ if(!_buf["Amy"].IsNumber) { throw new SerializationException(); } Amy = (CharacterCfg.Army)_buf["Amy"].AsInt; }
|
||||
{ if(!_buf["IconPath"].IsString) { throw new SerializationException(); } IconPath = _buf["IconPath"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataAttributeBase : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataAttributeBase(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["AttID"].IsNumber) { throw new SerializationException(); } AttID = _buf["AttID"]; }
|
||||
{ if(!_buf["AttInfoName"].IsString) { throw new SerializationException(); } AttInfoName = _buf["AttInfoName"]; }
|
||||
{ if(!_buf["AttShowIcon"].IsString) { throw new SerializationException(); } AttShowIcon = _buf["AttShowIcon"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterAttri : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterAttri(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["NameID"].IsString) { throw new SerializationException(); } NameID = _buf["NameID"]; }
|
||||
{ if(!_buf["NameRead"].IsString) { throw new SerializationException(); } NameRead = _buf["NameRead"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterAwaking : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterAwaking(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["AwakingLevel"].IsNumber) { throw new SerializationException(); } AwakingLevel = _buf["AwakingLevel"]; }
|
||||
{ if(!_buf["IconDarkPath"].IsString) { throw new SerializationException(); } IconDarkPath = _buf["IconDarkPath"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterBreak : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterBreak(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["BreakLevel"].IsNumber) { throw new SerializationException(); } BreakLevel = _buf["BreakLevel"]; }
|
||||
{ if(!_buf["IconPathLight"].IsString) { throw new SerializationException(); } IconPathLight = _buf["IconPathLight"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterLevelExp : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterLevelExp(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Level"].IsNumber) { throw new SerializationException(); } Level = _buf["Level"]; }
|
||||
{ if(!_buf["EXP"].IsNumber) { throw new SerializationException(); } EXP = _buf["EXP"]; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterLevelup : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterLevelup(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["TemplateID"].IsNumber) { throw new SerializationException(); } TemplateID = _buf["TemplateID"]; }
|
||||
{ if(!_buf["Level"].IsNumber) { throw new SerializationException(); } Level = _buf["Level"]; }
|
||||
{ if(!_buf["EXP"].IsNumber) { throw new SerializationException(); } EXP = _buf["EXP"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterLikability : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterLikability(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["LikabilityLevel"].IsNumber) { throw new SerializationException(); } LikabilityLevel = _buf["LikabilityLevel"]; }
|
||||
{ if(!_buf["LikabilityExp"].IsNumber) { throw new SerializationException(); } LikabilityExp = _buf["LikabilityExp"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterPersonalFiles : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterPersonalFiles(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["ParagraphID"].IsNumber) { throw new SerializationException(); } ParagraphID = _buf["ParagraphID"]; }
|
||||
{ if(!_buf["ParagraphText"].IsString) { throw new SerializationException(); } ParagraphText = _buf["ParagraphText"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterSkillLevel : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterSkillLevel(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["SkillIndex"].IsNumber) { throw new SerializationException(); } SkillIndex = _buf["SkillIndex"]; }
|
||||
{ if(!_buf["SkillLevel"].IsNumber) { throw new SerializationException(); } SkillLevel = _buf["SkillLevel"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataCharacterSkin : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCharacterSkin(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["SkinID"].IsNumber) { throw new SerializationException(); } SkinID = _buf["SkinID"]; }
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["NameID"].IsString) { throw new SerializationException(); } NameID = _buf["NameID"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataFactionAttri : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataFactionAttri(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Faction"].IsNumber) { throw new SerializationException(); } Faction = _buf["Faction"]; }
|
||||
{ if(!_buf["FactionEnum"].IsNumber) { throw new SerializationException(); } FactionEnum = (CharacterCfg.Efaction)_buf["FactionEnum"].AsInt; }
|
||||
{ if(!_buf["FlagPicPath"].IsString) { throw new SerializationException(); } FlagPicPath = _buf["FlagPicPath"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.CharacterCfg
|
|||
{
|
||||
public sealed partial class DataJobAttri : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataJobAttri(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Job"].IsNumber) { throw new SerializationException(); } Job = _buf["Job"]; }
|
||||
{ if(!_buf["DisplayName"].IsString) { throw new SerializationException(); } DisplayName = _buf["DisplayName"]; }
|
||||
{ if(!_buf["IconPath"].IsString) { throw new SerializationException(); } IconPath = _buf["IconPath"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ChargeCfg
|
|||
{
|
||||
public sealed partial class DataCurrencyShopCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCurrencyShopCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["AppleProductID"].IsString) { throw new SerializationException(); } AppleProductID = _buf["AppleProductID"]; }
|
||||
{ if(!_buf["PhxhProductID"].IsString) { throw new SerializationException(); } PhxhProductID = _buf["PhxhProductID"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg
|
|||
{
|
||||
public sealed partial class DataCondition : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataCondition(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (ConditionType)_buf["Type"].AsInt; }
|
||||
{ if(!_buf["Param1"].IsNumber) { throw new SerializationException(); } Param1 = _buf["Param1"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg
|
|||
{
|
||||
public sealed partial class DataGlobalConfig : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataGlobalConfig(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Hero_Exp_Item"].IsNumber) { throw new SerializationException(); } HeroExpItem = _buf["Hero_Exp_Item"]; }
|
||||
{ if(!_buf["Hero_Cost_Item"].IsNumber) { throw new SerializationException(); } HeroCostItem = _buf["Hero_Cost_Item"]; }
|
||||
{ if(!_buf["Item_Max_Default"].IsNumber) { throw new SerializationException(); } ItemMaxDefault = _buf["Item_Max_Default"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg
|
|||
{
|
||||
public sealed partial class DataSystemCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataSystemCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = (ESystemType)_buf["Id"].AsInt; }
|
||||
{ var __json0 = _buf["Unlock"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; Unlock = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Unlock[__index0++] = __v0; } }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.DeviceCfg
|
|||
{
|
||||
public sealed partial class DataDevice : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataDevice(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["DeviceName"].IsString) { throw new SerializationException(); } DeviceName = _buf["DeviceName"]; }
|
||||
{ if(!_buf["PerformanceId"].IsNumber) { throw new SerializationException(); } PerformanceId = _buf["PerformanceId"]; }
|
||||
{ if(!_buf["UseLowBlur"].IsBoolean) { throw new SerializationException(); } UseLowBlur = _buf["UseLowBlur"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.DeviceCfg
|
|||
{
|
||||
public sealed partial class DataPerformance : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPerformance(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Resolution"].IsNumber) { throw new SerializationException(); } Resolution = _buf["Resolution"]; }
|
||||
{ if(!_buf["UseURPAsset"].IsString) { throw new SerializationException(); } UseURPAsset = _buf["UseURPAsset"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.DialogueCfg
|
|||
{
|
||||
public sealed partial class DataDialogueCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataDialogueCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ var __json0 = _buf["DialogueType"]; if(!__json0.IsArray) { throw new SerializationException(); } DialogueType = new System.Collections.Generic.List<DialogueCfg.E_DialogueType>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { DialogueCfg.E_DialogueType __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = (DialogueCfg.E_DialogueType)__e0.AsInt; } DialogueType.Add(__v0); } }
|
||||
{ if(!_buf["DialogueDesc"].IsString) { throw new SerializationException(); } DialogueDesc = _buf["DialogueDesc"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.EffectCfg
|
|||
{
|
||||
public sealed partial class DataEffect : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataEffect(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["RoleID"].IsNumber) { throw new SerializationException(); } RoleID = _buf["RoleID"]; }
|
||||
{ if(!_buf["PrefabPath"].IsString) { throw new SerializationException(); } PrefabPath = _buf["PrefabPath"]; }
|
||||
{ if(!_buf["IsUIEffect"].IsBoolean) { throw new SerializationException(); } IsUIEffect = _buf["IsUIEffect"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.EmojCfg
|
|||
{
|
||||
public sealed partial class DataEmoji : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataEmoji(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["BgImg"].IsString) { throw new SerializationException(); } BgImg = _buf["BgImg"]; }
|
||||
{ if(!_buf["UpImg"].IsString) { throw new SerializationException(); } UpImg = _buf["UpImg"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ErrorCfg
|
|||
{
|
||||
public sealed partial class DataErrorCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataErrorCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ErrorID"].IsNumber) { throw new SerializationException(); } ErrorID = _buf["ErrorID"]; }
|
||||
{ if(!_buf["IsShowToPlayer"].IsBoolean) { throw new SerializationException(); } IsShowToPlayer = _buf["IsShowToPlayer"]; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FightCfg
|
|||
{
|
||||
public sealed partial class DataBattery : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataBattery(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["NameRead"].IsString) { throw new SerializationException(); } NameRead = _buf["NameRead"]; }
|
||||
{ if(!_buf["ModelPath"].IsString) { throw new SerializationException(); } ModelPath = _buf["ModelPath"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FightCfg
|
|||
{
|
||||
public sealed partial class DataBuild : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataBuild(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["id"].IsNumber) { throw new SerializationException(); } Id = _buf["id"]; }
|
||||
{ if(!_buf["name"].IsString) { throw new SerializationException(); } Name = _buf["name"]; }
|
||||
{ if(!_buf["build_type"].IsNumber) { throw new SerializationException(); } BuildType = _buf["build_type"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FightCfg
|
|||
{
|
||||
public sealed partial class DataEnWeather : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataEnWeather(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ var __json0 = _buf["BuffIds"]; if(!__json0.IsArray) { throw new SerializationException(); } BuffIds = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BuffIds.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FightCfg
|
|||
{
|
||||
public sealed partial class DataEnviorment : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataEnviorment(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ var __json0 = _buf["BuffIds"]; if(!__json0.IsArray) { throw new SerializationException(); } BuffIds = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BuffIds.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FightCfg
|
|||
{
|
||||
public sealed partial class DataFightNPC : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataFightNPC(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ConfigId"].IsNumber) { throw new SerializationException(); } ConfigId = _buf["ConfigId"]; }
|
||||
{ if(!_buf["NameRead"].IsString) { throw new SerializationException(); } NameRead = _buf["NameRead"]; }
|
||||
{ if(!_buf["NameId"].IsString) { throw new SerializationException(); } NameId = _buf["NameId"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FightCfg
|
|||
{
|
||||
public sealed partial class DataProtectUnit : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataProtectUnit(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["VehicleType"].IsNumber) { throw new SerializationException(); } VehicleType = _buf["VehicleType"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FightCfg
|
|||
{
|
||||
public sealed partial class DataWeatherEffect : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataWeatherEffect(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["WeatherId"].IsNumber) { throw new SerializationException(); } WeatherId = _buf["WeatherId"]; }
|
||||
{ if(!_buf["GroundId"].IsNumber) { throw new SerializationException(); } GroundId = _buf["GroundId"]; }
|
||||
{ if(!_buf["CameraPrefab"].IsString) { throw new SerializationException(); } CameraPrefab = _buf["CameraPrefab"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.FunctionLockCfg
|
|||
{
|
||||
public sealed partial class DataFunctionLock : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataFunctionLock(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["FunctionType"].IsNumber) { throw new SerializationException(); } FunctionType = (FunctionLockCfg.E_Function)_buf["FunctionType"].AsInt; }
|
||||
{ if(!_buf["UnlockCondition"].IsString) { throw new SerializationException(); } UnlockCondition = _buf["UnlockCondition"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.GuideCfg
|
|||
{
|
||||
public sealed partial class DataGuideCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataGuideCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["GroupId"].IsNumber) { throw new SerializationException(); } GroupId = _buf["GroupId"]; }
|
||||
{ if(!_buf["IsFinalStep"].IsBoolean) { throw new SerializationException(); } IsFinalStep = _buf["IsFinalStep"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.GuideCfg
|
|||
{
|
||||
public sealed partial class DataGuideTipCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataGuideTipCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ var __json0 = _buf["ListImagePath"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; ListImagePath = new string[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } ListImagePath[__index0++] = __v0; } }
|
||||
{ var __json0 = _buf["ListTextKeyList"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; ListTextKeyList = new string[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } ListTextKeyList[__index0++] = __v0; } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionBattleCfg
|
|||
{
|
||||
public sealed partial class DataLegionBattleBuilding : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionBattleBuilding(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (LegionBattleCfg.BuildingType)_buf["Type"].AsInt; }
|
||||
{ if(!_buf["NameKey"].IsString) { throw new SerializationException(); } NameKey = _buf["NameKey"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionBattleCfg
|
|||
{
|
||||
public sealed partial class DataLegionBattleCombatParam : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionBattleCombatParam(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = (LegionBattleCfg.CombatParam)_buf["ID"].AsInt; }
|
||||
{ if(!_buf["ParamInt1"].IsNumber) { throw new SerializationException(); } ParamInt1 = _buf["ParamInt1"]; }
|
||||
{ if(!_buf["ParamFloat1"].IsNumber) { throw new SerializationException(); } ParamFloat1 = _buf["ParamFloat1"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionBattleCfg
|
|||
{
|
||||
public sealed partial class DataLegionBattleMap : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionBattleMap(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Path"].IsString) { throw new SerializationException(); } Path = _buf["Path"]; }
|
||||
{ if(!_buf["LevelData"].IsString) { throw new SerializationException(); } LevelData = _buf["LevelData"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionBattleCfg
|
|||
{
|
||||
public sealed partial class DataLegionBattlePrize : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionBattlePrize(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ var __json0 = _buf["WinPrizeGroup"]; if(!__json0.IsArray) { throw new SerializationException(); } WinPrizeGroup = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } WinPrizeGroup.Add(__v0); } }
|
||||
{ var __json0 = _buf["LostPrizeGroup"]; if(!__json0.IsArray) { throw new SerializationException(); } LostPrizeGroup = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } LostPrizeGroup.Add(__v0); } }
|
||||
{ if(!_buf["WinBasePrize"].IsNumber) { throw new SerializationException(); } WinBasePrize = _buf["WinBasePrize"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionBattleCfg
|
|||
{
|
||||
public sealed partial class DataLegionBattlePrizeAllocation : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionBattlePrizeAllocation(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["PrizeCountPercent"].IsNumber) { throw new SerializationException(); } PrizeCountPercent = _buf["PrizeCountPercent"]; }
|
||||
{ if(!_buf["PrizeNumber"].IsNumber) { throw new SerializationException(); } PrizeNumber = _buf["PrizeNumber"]; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionBattleCfg
|
|||
{
|
||||
public sealed partial class DataLegionResult : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionResult(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ScoreMax"].IsNumber) { throw new SerializationException(); } ScoreMax = _buf["ScoreMax"]; }
|
||||
{ if(!_buf["ScoreMin"].IsNumber) { throw new SerializationException(); } ScoreMin = _buf["ScoreMin"]; }
|
||||
{ if(!_buf["AtkDeductionHP"].IsNumber) { throw new SerializationException(); } AtkDeductionHP = _buf["AtkDeductionHP"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionCfg
|
|||
{
|
||||
public sealed partial class DataLegionHead : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionHead(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["IconName"].IsString) { throw new SerializationException(); } IconName = _buf["IconName"]; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LegionCfg
|
|||
{
|
||||
public sealed partial class DataLegionPermissions : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLegionPermissions(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = (LegionCfg.Permission)_buf["ID"].AsInt; }
|
||||
{ if(!_buf["RegimentalCommander"].IsNumber) { throw new SerializationException(); } RegimentalCommander = _buf["RegimentalCommander"]; }
|
||||
{ if(!_buf["AssistantRegimentalCommander"].IsNumber) { throw new SerializationException(); } AssistantRegimentalCommander = _buf["AssistantRegimentalCommander"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LevelCfg
|
|||
{
|
||||
public sealed partial class DataChapter : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataChapter(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (LevelCfg.E_ChapterType)_buf["Type"].AsInt; }
|
||||
{ if(!_buf["MaterialIcon"].IsString) { throw new SerializationException(); } MaterialIcon = _buf["MaterialIcon"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LevelCfg
|
|||
{
|
||||
public sealed partial class DataDayNightProp : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataDayNightProp(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ var __json0 = _buf["BuffIds"]; if(!__json0.IsArray) { throw new SerializationException(); } BuffIds = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BuffIds.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LevelCfg
|
|||
{
|
||||
public sealed partial class DataLevel : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLevel(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["levelGroupID"].IsNumber) { throw new SerializationException(); } LevelGroupID = _buf["levelGroupID"]; }
|
||||
{ if(!_buf["LevelType"].IsNumber) { throw new SerializationException(); } LevelType = (LevelCfg.E_LevelType)_buf["LevelType"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LevelCfg
|
|||
{
|
||||
public sealed partial class DataLevelGroup : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLevelGroup(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["ChapterID"].IsNumber) { throw new SerializationException(); } ChapterID = _buf["ChapterID"]; }
|
||||
{ if(!_buf["LevelDifficulty"].IsNumber) { throw new SerializationException(); } LevelDifficulty = (LevelCfg.E_LevelDifficulty)_buf["LevelDifficulty"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LevelCfg
|
|||
{
|
||||
public sealed partial class DataTerrianProp : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataTerrianProp(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
{ if(!_buf["DisplayName"].IsString) { throw new SerializationException(); } DisplayName = _buf["DisplayName"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.LoadingCfg
|
|||
{
|
||||
public sealed partial class DataLoadinfCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataLoadinfCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["TitleText"].IsString) { throw new SerializationException(); } TitleText = _buf["TitleText"]; }
|
||||
{ if(!_buf["ContentText"].IsString) { throw new SerializationException(); } ContentText = _buf["ContentText"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.MainSceneCfg
|
|||
{
|
||||
public sealed partial class DataMainSceneCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataMainSceneCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["Path"].IsString) { throw new SerializationException(); } Path = _buf["Path"]; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ModifyCfg
|
|||
{
|
||||
public sealed partial class DataModifyDefine : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataModifyDefine(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["ModifyClass"].IsNumber) { throw new SerializationException(); } ModifyClass = (ModifyCfg.EConfigType)_buf["ModifyClass"].AsInt; }
|
||||
{ if(!_buf["ModifyID"].IsNumber) { throw new SerializationException(); } ModifyID = _buf["ModifyID"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ModifyCfg
|
|||
{
|
||||
public sealed partial class DataModifyValue : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataModifyValue(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ var __json0 = _buf["ModifyDefineIds"]; if(!__json0.IsArray) { throw new SerializationException(); } ModifyDefineIds = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ModifyDefineIds.Add(__v0); } }
|
||||
{ var __json0 = _buf["ModifyValues"]; if(!__json0.IsArray) { throw new SerializationException(); } ModifyValues = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ModifyValues.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.MonsterCfg
|
|||
{
|
||||
public sealed partial class DataMonster : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataMonster(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["MonsterID"].IsNumber) { throw new SerializationException(); } MonsterID = _buf["MonsterID"]; }
|
||||
{ if(!_buf["NameRead"].IsString) { throw new SerializationException(); } NameRead = _buf["NameRead"]; }
|
||||
{ if(!_buf["NpcType"].IsNumber) { throw new SerializationException(); } NpcType = _buf["NpcType"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.MonsterCfg
|
|||
{
|
||||
public sealed partial class DataMonsterClass : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataMonsterClass(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["MonsterClassID"].IsNumber) { throw new SerializationException(); } MonsterClassID = _buf["MonsterClassID"]; }
|
||||
{ if(!_buf["NameId"].IsString) { throw new SerializationException(); } NameId = _buf["NameId"]; }
|
||||
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.PassiveCfg
|
|||
{
|
||||
public sealed partial class DataPassiveSkillCfg : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPassiveSkillCfg(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["NameRead"].IsString) { throw new SerializationException(); } NameRead = _buf["NameRead"]; }
|
||||
{ var __json0 = _buf["BuffIds"]; if(!__json0.IsArray) { throw new SerializationException(); } BuffIds = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BuffIds.Add(__v0); } }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.PlayerCfg
|
|||
{
|
||||
public sealed partial class DataPlayerSkin : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPlayerSkin(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["ModelPathMan"].IsString) { throw new SerializationException(); } ModelPathMan = _buf["ModelPathMan"]; }
|
||||
{ if(!_buf["ModelPathFemale"].IsString) { throw new SerializationException(); } ModelPathFemale = _buf["ModelPathFemale"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.RedPoint
|
|||
{
|
||||
public sealed partial class DataRedPoint : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataRedPoint(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = _buf["Id"]; }
|
||||
{ if(!_buf["ParentID"].IsNumber) { throw new SerializationException(); } ParentID = _buf["ParentID"]; }
|
||||
{ if(!_buf["Type"].IsNumber) { throw new SerializationException(); } Type = (RedPoint.NodeType)_buf["Type"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ShopShowCfg
|
|||
{
|
||||
public sealed partial class DataShopShow : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataShopShow(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["ChangeTime"].IsNumber) { throw new SerializationException(); } ChangeTime = _buf["ChangeTime"]; }
|
||||
{ if(!_buf["NeedChangeEmoji"].IsBoolean) { throw new SerializationException(); } NeedChangeEmoji = _buf["NeedChangeEmoji"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.ShowCfg
|
|||
{
|
||||
public sealed partial class DataShowConfig : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataShowConfig(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["GroupID"].IsNumber) { throw new SerializationException(); } GroupID = _buf["GroupID"]; }
|
||||
{ if(!_buf["PointID"].IsNumber) { throw new SerializationException(); } PointID = _buf["PointID"]; }
|
||||
{ if(!_buf["ShowSceneType"].IsNumber) { throw new SerializationException(); } ShowSceneType = (ShowCfg.E_ShowSceneType)_buf["ShowSceneType"].AsInt; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.SkillCfg
|
|||
{
|
||||
public sealed partial class DataPlayerSkill : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataPlayerSkill(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["NameLocal"].IsString) { throw new SerializationException(); } NameLocal = _buf["NameLocal"]; }
|
||||
{ if(!_buf["SkillGroup"].IsNumber) { throw new SerializationException(); } SkillGroup = _buf["SkillGroup"]; }
|
||||
|
|
|
|||
|
|
@ -15,8 +15,11 @@ namespace cfg.SkillCfg
|
|||
{
|
||||
public sealed partial class DataSkill : Luban.BeanBase
|
||||
{
|
||||
public JSONNode cacheJsonNode {get; private set;}
|
||||
|
||||
public DataSkill(JSONNode _buf)
|
||||
{
|
||||
cacheJsonNode = _buf;
|
||||
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||||
{ if(!_buf["SkillLevel"].IsNumber) { throw new SerializationException(); } SkillLevel = _buf["SkillLevel"]; }
|
||||
{ if(!_buf["NameRead"].IsString) { throw new SerializationException(); } NameRead = _buf["NameRead"]; }
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue