|
@@ -25,6 +25,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
{ if(!_json["TimeInterval"].IsNumber) { throw new SerializationException(); } TimeInterval = _json["TimeInterval"]; }
|
|
{ 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); } }
|
|
{ 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["PortalsID"].IsNumber) { throw new SerializationException(); } PortalsID = _json["PortalsID"]; }
|
|
{ if(!_json["PortalsID"].IsNumber) { throw new SerializationException(); } PortalsID = _json["PortalsID"]; }
|
|
|
|
|
+ { var __json0 = _json["Scale"]; if(!__json0.IsArray) { throw new SerializationException(); } Scale = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Scale.Add(__v0); } }
|
|
|
{ if(!_json["YRandomRange"].IsNumber) { throw new SerializationException(); } YRandomRange = _json["YRandomRange"]; }
|
|
{ if(!_json["YRandomRange"].IsNumber) { throw new SerializationException(); } YRandomRange = _json["YRandomRange"]; }
|
|
|
{ if(!_json["ZRandomRange"].IsNumber) { throw new SerializationException(); } ZRandomRange = _json["ZRandomRange"]; }
|
|
{ if(!_json["ZRandomRange"].IsNumber) { throw new SerializationException(); } ZRandomRange = _json["ZRandomRange"]; }
|
|
|
{ if(!_json["AttackRatio"].IsNumber) { throw new SerializationException(); } AttackRatio = _json["AttackRatio"]; }
|
|
{ if(!_json["AttackRatio"].IsNumber) { throw new SerializationException(); } AttackRatio = _json["AttackRatio"]; }
|
|
@@ -32,7 +33,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
PostInit();
|
|
PostInit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public SingleCreateEnemyConfig(int ID, int EnemyID, int Count, float Time, float TimeInterval, System.Collections.Generic.List<float> Position, int PortalsID, float YRandomRange, float ZRandomRange, float AttackRatio, float HPRatio )
|
|
|
|
|
|
|
+ public SingleCreateEnemyConfig(int ID, int EnemyID, int Count, float Time, float TimeInterval, System.Collections.Generic.List<float> Position, int PortalsID, System.Collections.Generic.List<float> Scale, float YRandomRange, float ZRandomRange, float AttackRatio, float HPRatio )
|
|
|
{
|
|
{
|
|
|
this.ID = ID;
|
|
this.ID = ID;
|
|
|
this.EnemyID = EnemyID;
|
|
this.EnemyID = EnemyID;
|
|
@@ -41,6 +42,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
this.TimeInterval = TimeInterval;
|
|
this.TimeInterval = TimeInterval;
|
|
|
this.Position = Position;
|
|
this.Position = Position;
|
|
|
this.PortalsID = PortalsID;
|
|
this.PortalsID = PortalsID;
|
|
|
|
|
+ this.Scale = Scale;
|
|
|
this.YRandomRange = YRandomRange;
|
|
this.YRandomRange = YRandomRange;
|
|
|
this.ZRandomRange = ZRandomRange;
|
|
this.ZRandomRange = ZRandomRange;
|
|
|
this.AttackRatio = AttackRatio;
|
|
this.AttackRatio = AttackRatio;
|
|
@@ -82,6 +84,10 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public int PortalsID { get; private set; }
|
|
public int PortalsID { get; private set; }
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
|
|
+ /// 传送门朝向
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public System.Collections.Generic.List<float> Scale { get; private set; }
|
|
|
|
|
+ /// <summary>
|
|
|
/// Y轴随机范围
|
|
/// Y轴随机范围
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public float YRandomRange { get; private set; }
|
|
public float YRandomRange { get; private set; }
|
|
@@ -120,6 +126,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
+ "TimeInterval:" + TimeInterval + ","
|
|
+ "TimeInterval:" + TimeInterval + ","
|
|
|
+ "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
|
|
+ "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
|
|
|
+ "PortalsID:" + PortalsID + ","
|
|
+ "PortalsID:" + PortalsID + ","
|
|
|
|
|
+ + "Scale:" + Bright.Common.StringUtil.CollectionToString(Scale) + ","
|
|
|
+ "YRandomRange:" + YRandomRange + ","
|
|
+ "YRandomRange:" + YRandomRange + ","
|
|
|
+ "ZRandomRange:" + ZRandomRange + ","
|
|
+ "ZRandomRange:" + ZRandomRange + ","
|
|
|
+ "AttackRatio:" + AttackRatio + ","
|
|
+ "AttackRatio:" + AttackRatio + ","
|