| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- //------------------------------------------------------------------------------
- // <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 Bright.Serialization;
- using System.Collections.Generic;
- using SimpleJSON;
- namespace cfg
- {
- public sealed partial class SingleCreateEnemy8Config : Bright.Config.BeanBase
- {
- public SingleCreateEnemy8Config(JSONNode _json)
- {
- { if(!_json["WaveID"].IsNumber) { throw new SerializationException(); } WaveID = _json["WaveID"]; }
- { if(!_json["WaveName"].IsString) { throw new SerializationException(); } WaveName = _json["WaveName"]; }
- { if(!_json["WaveTime"].IsNumber) { throw new SerializationException(); } WaveTime = _json["WaveTime"]; }
- { if(!_json["BuildingID"].IsString) { throw new SerializationException(); } BuildingID = _json["BuildingID"]; }
- { if(!_json["BuildingHP"].IsNumber) { throw new SerializationException(); } BuildingHP = _json["BuildingHP"]; }
- { if(!_json["EnemyName"].IsString) { throw new SerializationException(); } EnemyName = _json["EnemyName"]; }
- { var __json0 = _json["Position"]; if(!__json0.IsArray) { throw new SerializationException(); } Position = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Position.Add(__v0); } }
- { if(!_json["StartTime"].IsNumber) { throw new SerializationException(); } StartTime = _json["StartTime"]; }
- { if(!_json["EndTime"].IsNumber) { throw new SerializationException(); } EndTime = _json["EndTime"]; }
- { if(!_json["Count"].IsNumber) { throw new SerializationException(); } Count = _json["Count"]; }
- { if(!_json["AttackRatio"].IsNumber) { throw new SerializationException(); } AttackRatio = _json["AttackRatio"]; }
- { if(!_json["SpeedRatio"].IsNumber) { throw new SerializationException(); } SpeedRatio = _json["SpeedRatio"]; }
- { if(!_json["HPRatio"].IsNumber) { throw new SerializationException(); } HPRatio = _json["HPRatio"]; }
- { if(!_json["ArmorRatio"].IsNumber) { throw new SerializationException(); } ArmorRatio = _json["ArmorRatio"]; }
- { if(!_json["ArmorPiercingRatio"].IsNumber) { throw new SerializationException(); } ArmorPiercingRatio = _json["ArmorPiercingRatio"]; }
- PostInit();
- }
- public SingleCreateEnemy8Config(float WaveID, string WaveName, int WaveTime, string BuildingID, float BuildingHP, string EnemyName, System.Collections.Generic.List<int> Position, int StartTime, int EndTime, int Count, float AttackRatio, float SpeedRatio, float HPRatio, float ArmorRatio, float ArmorPiercingRatio )
- {
- this.WaveID = WaveID;
- this.WaveName = WaveName;
- this.WaveTime = WaveTime;
- this.BuildingID = BuildingID;
- this.BuildingHP = BuildingHP;
- this.EnemyName = EnemyName;
- this.Position = Position;
- this.StartTime = StartTime;
- this.EndTime = EndTime;
- this.Count = Count;
- this.AttackRatio = AttackRatio;
- this.SpeedRatio = SpeedRatio;
- this.HPRatio = HPRatio;
- this.ArmorRatio = ArmorRatio;
- this.ArmorPiercingRatio = ArmorPiercingRatio;
- PostInit();
- }
- public static SingleCreateEnemy8Config DeserializeSingleCreateEnemy8Config(JSONNode _json)
- {
- return new SingleCreateEnemy8Config(_json);
- }
- /// <summary>
- /// 表格参数:
- /// </summary>
- public float WaveID { get; private set; }
- /// <summary>
- /// 宽:
- /// </summary>
- public string WaveName { get; private set; }
- /// <summary>
- /// 140
- /// </summary>
- public int WaveTime { get; private set; }
- /// <summary>
- /// 经验倍率:
- /// </summary>
- public string BuildingID { get; private set; }
- /// <summary>
- /// 1
- /// </summary>
- public float BuildingHP { get; private set; }
- public string EnemyName { get; private set; }
- public System.Collections.Generic.List<int> Position { get; private set; }
- public int StartTime { get; private set; }
- public int EndTime { get; private set; }
- public int Count { get; private set; }
- public float AttackRatio { get; private set; }
- public float SpeedRatio { get; private set; }
- public float HPRatio { get; private set; }
- public float ArmorRatio { get; private set; }
- public float ArmorPiercingRatio { get; private set; }
- public const int __ID__ = 1824508598;
- public override int GetTypeId() => __ID__;
- public void Resolve(Dictionary<string, object> _tables)
- {
- PostResolve();
- }
- public void TranslateText(System.Func<string, string, string> translator)
- {
- }
- public override string ToString()
- {
- return "{ "
- + "WaveID:" + WaveID + ","
- + "WaveName:" + WaveName + ","
- + "WaveTime:" + WaveTime + ","
- + "BuildingID:" + BuildingID + ","
- + "BuildingHP:" + BuildingHP + ","
- + "EnemyName:" + EnemyName + ","
- + "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
- + "StartTime:" + StartTime + ","
- + "EndTime:" + EndTime + ","
- + "Count:" + Count + ","
- + "AttackRatio:" + AttackRatio + ","
- + "SpeedRatio:" + SpeedRatio + ","
- + "HPRatio:" + HPRatio + ","
- + "ArmorRatio:" + ArmorRatio + ","
- + "ArmorPiercingRatio:" + ArmorPiercingRatio + ","
- + "}";
- }
-
- partial void PostInit();
- partial void PostResolve();
- }
- }
|