public static StandardLine CloneFromRed(StandardLine standardLine) { LineTrigger trigger = null; if (standardLine.Trigger != null) { trigger = new LineTrigger() { ZoomTrigger = standardLine.Trigger.ZoomTrigger, ZoomFrames = standardLine.Trigger.ZoomFrames, ZoomTarget = standardLine.Trigger.ZoomTarget }; } StandardLine newLine = new StandardLine() { ID = standardLine.ID, Extension = standardLine.Extension, inv = standardLine.inv, Position = standardLine.Position, Position2 = standardLine.Position2, Trigger = trigger, }; newLine.CalculateConstants(); return(newLine); }
public override GameLine Clone() { LineTrigger trigger = null; if (Trigger != null) { trigger = new LineTrigger() { ZoomTrigger = Trigger.ZoomTrigger, ZoomFrames = Trigger.ZoomFrames, ZoomTarget = Trigger.ZoomTarget }; } return(new StandardLine() { ID = ID, Difference = Difference, DiffNormal = DiffNormal, Distance = Distance, DotScalar = DotScalar, Extension = Extension, ExtensionRatio = ExtensionRatio, inv = inv, Position = Position, Position2 = Position2, Trigger = trigger }); }
public bool CompareTo(LineTrigger other) { if (other == null) { return(false); } return(ZoomTrigger == other.ZoomTrigger && ZoomTarget == other.ZoomTarget && ZoomFrames == other.ZoomFrames); }