//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using Bright.Serialization; using System.Collections.Generic; using SimpleJSON; namespace cfg { /// /// 鱼的变异 /// public sealed partial class FishMutant : Bright.Config.BeanBase { public JSONNode json; public FishMutant(JSONNode _json) { { if(!_json["Material"].IsString) { throw new SerializationException(); } Material = _json["Material"]; } { if(!_json["FxLeftEye"].IsString) { throw new SerializationException(); } FxLeftEye = _json["FxLeftEye"]; } { if(!_json["FxRightEye"].IsString) { throw new SerializationException(); } FxRightEye = _json["FxRightEye"]; } { var __json0 = _json["MutantProb"]; if(!__json0.IsArray) { throw new SerializationException(); } MutantProb = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MutantProb.Add(__v0); } } { var __json0 = _json["ExtraReward"]; if(!__json0.IsArray) { throw new SerializationException(); } ExtraReward = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } ExtraReward.Add(__v0); } } { var __json0 = _json["FishingScale"]; if(!__json0.IsArray) { throw new SerializationException(); } FishingScale = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishingScale.Add(__v0); } } { var __json0 = _json["AquariumScale"]; if(!__json0.IsArray) { throw new SerializationException(); } AquariumScale = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AquariumScale.Add(__v0); } } { var __json0 = _json["FxFishingScale"]; if(!__json0.IsArray) { throw new SerializationException(); } FxFishingScale = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FxFishingScale.Add(__v0); } } { var __json0 = _json["FxAquariumScale"]; if(!__json0.IsArray) { throw new SerializationException(); } FxAquariumScale = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FxAquariumScale.Add(__v0); } } { var __json0 = _json["FishingExtraParam"]; if(!__json0.IsArray) { throw new SerializationException(); } FishingExtraParam = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { float __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } FishingExtraParam.Add(__v0); } } json = _json; PostInit(); } public FishMutant(string Material, string FxLeftEye, string FxRightEye, System.Collections.Generic.List MutantProb, System.Collections.Generic.List ExtraReward, System.Collections.Generic.List FishingScale, System.Collections.Generic.List AquariumScale, System.Collections.Generic.List FxFishingScale, System.Collections.Generic.List FxAquariumScale, System.Collections.Generic.List> FishingExtraParam ) { this.Material = Material; this.FxLeftEye = FxLeftEye; this.FxRightEye = FxRightEye; this.MutantProb = MutantProb; this.ExtraReward = ExtraReward; this.FishingScale = FishingScale; this.AquariumScale = AquariumScale; this.FxFishingScale = FxFishingScale; this.FxAquariumScale = FxAquariumScale; this.FishingExtraParam = FishingExtraParam; PostInit(); } public static FishMutant DeserializeFishMutant(JSONNode _json) { return new FishMutant(_json); } /// /// 变异的材质 /// public string Material { get; private set; } /// /// 左眼特效 /// public string FxLeftEye { get; private set; } /// /// 右眼特效 /// public string FxRightEye { get; private set; } /// /// 每种品质的鱼变异的概率 /// public System.Collections.Generic.List MutantProb { get; private set; } /// /// 钓起的时候的额外奖励
对应Drop表主键
积分,钞票 ///
public System.Collections.Generic.List ExtraReward { get; private set; } /// /// 钓鱼、游弋时模型放大倍率
额外乘以这个倍率 ///
public System.Collections.Generic.List FishingScale { get; private set; } /// /// 水族箱模型放大倍率
额外乘以这个倍率 ///
public System.Collections.Generic.List AquariumScale { get; private set; } /// /// 钓鱼时,鱼眼特效的总倍率 /// public System.Collections.Generic.List FxFishingScale { get; private set; } /// /// 水族箱时,鱼眼特效的总倍率
注意需要乘以鱼的成熟缩放 ///
public System.Collections.Generic.List FxAquariumScale { get; private set; } /// /// 钓鱼时,如下属性会以加法方式提高:
力量,速度,警惕,血量,逃跑速度,技能蓄力速度,逃跑触发血量 ///
public System.Collections.Generic.List> FishingExtraParam { get; private set; } public const int __ID__ = 1306643251; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Material:" + Material + "," + "FxLeftEye:" + FxLeftEye + "," + "FxRightEye:" + FxRightEye + "," + "MutantProb:" + Bright.Common.StringUtil.CollectionToString(MutantProb) + "," + "ExtraReward:" + Bright.Common.StringUtil.CollectionToString(ExtraReward) + "," + "FishingScale:" + Bright.Common.StringUtil.CollectionToString(FishingScale) + "," + "AquariumScale:" + Bright.Common.StringUtil.CollectionToString(AquariumScale) + "," + "FxFishingScale:" + Bright.Common.StringUtil.CollectionToString(FxFishingScale) + "," + "FxAquariumScale:" + Bright.Common.StringUtil.CollectionToString(FxAquariumScale) + "," + "FishingExtraParam:" + Bright.Common.StringUtil.CollectionToString(FishingExtraParam) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }