public LapPathGroup(dynamic bymlNode) { if (bymlNode is Dictionary <string, dynamic> ) { Prop = (Dictionary <string, dynamic>)bymlNode; } else { throw new Exception("Not a dictionary"); } int index = 0; foreach (var point in this["PathPt"]) { PathPoints.Add(new LapPathPoint(point) { Name = $"Point [{index++}]" }); } index = 0; foreach (var point in this["ReturnPoints"]) { ReturnPoints.Add(new ReturnPoint(point) { Name = $"Point [{index++}]" }); } }
public EnemyPathGroup(dynamic bymlNode) { if (bymlNode is Dictionary <string, dynamic> ) { Prop = (Dictionary <string, dynamic>)bymlNode; } else { throw new Exception("Not a dictionary"); } foreach (var point in this["PathPt"]) { PathPoints.Add(new EnemyPathPoint(point)); } }