예제 #1
0
파일: Cycle.cs 프로젝트: Isthimius/Gondwana
 private Cycle(Cycle fromCycle)
 {
     Sequence  = fromCycle.Sequence;
     _throttle = fromCycle._throttle;
     NextCycle = this;
     CycleKey  = fromCycle.CycleKey;
 }
예제 #2
0
파일: Cycle.cs 프로젝트: Isthimius/Gondwana
        public Cycle(FrameSequence sequence, double throttleTime, string cycleKey)
        {
            Sequence     = sequence;
            ThrottleTime = throttleTime;
            NextCycle    = this;
            CycleKey     = cycleKey;

            if (Cycle._cycles.ContainsKey(cycleKey))
            {
                Cycle._cycles[cycleKey] = this;
            }
            else
            {
                Cycle._cycles.Add(cycleKey, this);
            }
        }