|
|
@@ -21,33 +21,33 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
{ 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["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["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["Type"].IsNumber) { throw new SerializationException(); } Type = _json["Type"]; }
|
|
|
{ if(!_json["BuildingHP"].IsNumber) { throw new SerializationException(); } BuildingHP = _json["BuildingHP"]; }
|
|
|
{ if(!_json["BuildingID"].IsNumber) { throw new SerializationException(); } BuildingID = _json["BuildingID"]; }
|
|
|
PostInit();
|
|
|
}
|
|
|
|
|
|
- public SingleCreateEnemyConfig(int WaveID, string WaveName, int WaveTime, float AttackRatio, float SpeedRatio, float HPRatio, string EnemyName, System.Collections.Generic.List<int> Position, int StartTime, int EndTime, int Count, int Type, float BuildingHP, int BuildingID )
|
|
|
+ public SingleCreateEnemyConfig(int WaveID, string WaveName, int WaveTime, string EnemyName, System.Collections.Generic.List<int> Position, int StartTime, int EndTime, int Count, float AttackRatio, float SpeedRatio, float HPRatio, int Type, float BuildingHP, int BuildingID )
|
|
|
{
|
|
|
this.WaveID = WaveID;
|
|
|
this.WaveName = WaveName;
|
|
|
this.WaveTime = WaveTime;
|
|
|
- this.AttackRatio = AttackRatio;
|
|
|
- this.SpeedRatio = SpeedRatio;
|
|
|
- this.HPRatio = HPRatio;
|
|
|
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.Type = Type;
|
|
|
this.BuildingHP = BuildingHP;
|
|
|
this.BuildingID = BuildingID;
|
|
|
@@ -71,14 +71,14 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
/// 140
|
|
|
/// </summary>
|
|
|
public int WaveTime { get; private set; }
|
|
|
- public float AttackRatio { get; private set; }
|
|
|
- public float SpeedRatio { get; private set; }
|
|
|
- public float HPRatio { 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 int Type { get; private set; }
|
|
|
public float BuildingHP { get; private set; }
|
|
|
public int BuildingID { get; private set; }
|
|
|
@@ -101,14 +101,14 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
+ "WaveID:" + WaveID + ","
|
|
|
+ "WaveName:" + WaveName + ","
|
|
|
+ "WaveTime:" + WaveTime + ","
|
|
|
- + "AttackRatio:" + AttackRatio + ","
|
|
|
- + "SpeedRatio:" + SpeedRatio + ","
|
|
|
- + "HPRatio:" + HPRatio + ","
|
|
|
+ "EnemyName:" + EnemyName + ","
|
|
|
+ "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
|
|
|
+ "StartTime:" + StartTime + ","
|
|
|
+ "EndTime:" + EndTime + ","
|
|
|
+ "Count:" + Count + ","
|
|
|
+ + "AttackRatio:" + AttackRatio + ","
|
|
|
+ + "SpeedRatio:" + SpeedRatio + ","
|
|
|
+ + "HPRatio:" + HPRatio + ","
|
|
|
+ "Type:" + Type + ","
|
|
|
+ "BuildingHP:" + BuildingHP + ","
|
|
|
+ "BuildingID:" + BuildingID + ","
|