Esempio n. 1
0
 public void Start(AGE.Action _action)
 {
     if (this.enabled)
     {
         if (!this.isCondition)
         {
             _action.SetCondition(this, true);
         }
         this.curTime       = 0;
         this.preExcuteTime = 0;
         this.started       = true;
         this.startCount++;
     }
 }
Esempio n. 2
0
 public override void Process(AGE.Action _action, Track _track, int _localTime)
 {
     if ((this.PeriodicInterval > 0) && base.bInit)
     {
         int num = _localTime - this.lastTime;
         this.lastTime       = _localTime;
         this.intervalTimer += num;
         if (this.intervalTimer >= this.PeriodicInterval)
         {
             this.intervalTimer = 0;
             base.DoSkillFuncShared(ESkillFuncStage.Update);
             bool flag = this.Check(_action, _track);
             _action.SetCondition(_track, flag);
         }
     }
 }
Esempio n. 3
0
 public void Stop(AGE.Action _action)
 {
     if (this.started)
     {
         for (int i = 0; i < this.activeEvents.Count; i++)
         {
             this.activeEvents[i].Leave(this.action, this);
         }
         this.activeEvents.Clear();
         if (!this.isCondition)
         {
             _action.SetCondition(this, false);
         }
         this.started = false;
     }
 }
Esempio n. 4
0
 public override void Process(AGE.Action _action, Track _track)
 {
     _action.SetCondition(_track, this.Check(_action, _track));
 }
Esempio n. 5
0
        public override void Process(AGE.Action _action, Track _track, int _localTime)
        {
            bool flag = this.Check(_action, _track);

            _action.SetCondition(_track, flag);
        }
Esempio n. 6
0
        public override void Leave(AGE.Action _action, Track _track)
        {
            bool flag = this.Check(_action, _track);

            _action.SetCondition(_track, flag);
        }