Пример #1
0
        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);
        }
Пример #2
0
        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
            });
        }
Пример #3
0
 public bool CompareTo(LineTrigger other)
 {
     if (other == null)
     {
         return(false);
     }
     return(ZoomTrigger == other.ZoomTrigger &&
            ZoomTarget == other.ZoomTarget &&
            ZoomFrames == other.ZoomFrames);
 }