|
@@ -24,6 +24,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
{ if(!_json["Time"].IsNumber) { throw new SerializationException(); } Time = _json["Time"]; }
|
|
{ if(!_json["Time"].IsNumber) { throw new SerializationException(); } Time = _json["Time"]; }
|
|
|
{ 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); } }
|
|
|
|
|
+ { var __json0 = _json["PortalsPosition"]; if(!__json0.IsArray) { throw new SerializationException(); } PortalsPosition = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PortalsPosition.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); } }
|
|
{ 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"]; }
|
|
@@ -33,7 +34,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, System.Collections.Generic.List<float> Scale, 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, System.Collections.Generic.List<float> PortalsPosition, 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.Time = Time;
|
|
this.Time = Time;
|
|
|
this.TimeInterval = TimeInterval;
|
|
this.TimeInterval = TimeInterval;
|
|
|
this.Position = Position;
|
|
this.Position = Position;
|
|
|
|
|
+ this.PortalsPosition = PortalsPosition;
|
|
|
this.PortalsID = PortalsID;
|
|
this.PortalsID = PortalsID;
|
|
|
this.Scale = Scale;
|
|
this.Scale = Scale;
|
|
|
this.YRandomRange = YRandomRange;
|
|
this.YRandomRange = YRandomRange;
|
|
@@ -80,11 +82,15 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public System.Collections.Generic.List<float> Position { get; private set; }
|
|
public System.Collections.Generic.List<float> Position { get; private set; }
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
|
|
+ /// 传送门位置
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public System.Collections.Generic.List<float> PortalsPosition { get; private set; }
|
|
|
|
|
+ /// <summary>
|
|
|
/// 出怪传送门ID
|
|
/// 出怪传送门ID
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public int PortalsID { get; private set; }
|
|
public int PortalsID { get; private set; }
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
- /// 传送门朝向
|
|
|
|
|
|
|
+ /// 传送门朝向(-1朝右,1朝左)
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public System.Collections.Generic.List<float> Scale { get; private set; }
|
|
public System.Collections.Generic.List<float> Scale { get; private set; }
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -125,6 +131,7 @@ public sealed partial class SingleCreateEnemyConfig : Bright.Config.BeanBase
|
|
|
+ "Time:" + Time + ","
|
|
+ "Time:" + Time + ","
|
|
|
+ "TimeInterval:" + TimeInterval + ","
|
|
+ "TimeInterval:" + TimeInterval + ","
|
|
|
+ "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
|
|
+ "Position:" + Bright.Common.StringUtil.CollectionToString(Position) + ","
|
|
|
|
|
+ + "PortalsPosition:" + Bright.Common.StringUtil.CollectionToString(PortalsPosition) + ","
|
|
|
+ "PortalsID:" + PortalsID + ","
|
|
+ "PortalsID:" + PortalsID + ","
|
|
|
+ "Scale:" + Bright.Common.StringUtil.CollectionToString(Scale) + ","
|
|
+ "Scale:" + Bright.Common.StringUtil.CollectionToString(Scale) + ","
|
|
|
+ "YRandomRange:" + YRandomRange + ","
|
|
+ "YRandomRange:" + YRandomRange + ","
|