|
|
@@ -25,12 +25,13 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
{ if(!_json["TimeInterval"].IsNumber) { throw new SerializationException(); } TimeInterval = _json["TimeInterval"]; }
|
|
|
{ var __json0 = _json["Position"]; if(!__json0.IsArray) { throw new SerializationException(); } Position = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Position.Add(__v0); } }
|
|
|
{ if(!_json["YRandomRange"].IsNumber) { throw new SerializationException(); } YRandomRange = _json["YRandomRange"]; }
|
|
|
+ { if(!_json["ZRandomRange"].IsNumber) { throw new SerializationException(); } ZRandomRange = _json["ZRandomRange"]; }
|
|
|
{ if(!_json["AttackRatio"].IsNumber) { throw new SerializationException(); } AttackRatio = _json["AttackRatio"]; }
|
|
|
{ if(!_json["HPRatio"].IsNumber) { throw new SerializationException(); } HPRatio = _json["HPRatio"]; }
|
|
|
PostInit();
|
|
|
}
|
|
|
|
|
|
- public SingleCreateEnemyConfig(int ID, int EnemyID, int Count, float Time, float TimeInterval, System.Collections.Generic.List<float> Position, float YRandomRange, float AttackRatio, float HPRatio )
|
|
|
+ public SingleCreateEnemyConfig(int ID, int EnemyID, int Count, float Time, float TimeInterval, System.Collections.Generic.List<float> Position, float YRandomRange, float ZRandomRange, float AttackRatio, float HPRatio )
|
|
|
{
|
|
|
this.ID = ID;
|
|
|
this.EnemyID = EnemyID;
|
|
|
@@ -39,6 +40,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
this.TimeInterval = TimeInterval;
|
|
|
this.Position = Position;
|
|
|
this.YRandomRange = YRandomRange;
|
|
|
+ this.ZRandomRange = ZRandomRange;
|
|
|
this.AttackRatio = AttackRatio;
|
|
|
this.HPRatio = HPRatio;
|
|
|
PostInit();
|
|
|
@@ -78,6 +80,10 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
/// </summary>
|
|
|
public float YRandomRange { get; private set; }
|
|
|
/// <summary>
|
|
|
+ /// Z轴随机范围
|
|
|
+ /// </summary>
|
|
|
+ public float ZRandomRange { get; private set; }
|
|
|
+ /// <summary>
|
|
|
/// 攻击力倍率
|
|
|
/// </summary>
|
|
|
public float AttackRatio { get; private set; }
|
|
|
@@ -108,6 +114,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
+ "TimeInterval:" + TimeInterval + ","
|
|
|
+ "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
|
|
|
+ "YRandomRange:" + YRandomRange + ","
|
|
|
+ + "ZRandomRange:" + ZRandomRange + ","
|
|
|
+ "AttackRatio:" + AttackRatio + ","
|
|
|
+ "HPRatio:" + HPRatio + ","
|
|
|
+ "}";
|