예제 #1
0
 public bool b(ActionLockType A_0)
 {
     if (this.a.ContainsKey(A_0))
     {
         if (this.a[A_0] >= DateTimeOffset.Now)
         {
             return(true);
         }
         this.a.Remove(A_0);
     }
     return(false);
 }
예제 #2
0
    public static void a(eRechargeVital_Single A_0, MySpell A_1)
    {
        ActionLockType type = a(A_0);

        if (!PluginCore.cq.n.a(8, 0, true))
        {
            PluginCore.cq.n.n.a(type, TimeSpan.FromSeconds(er.h("RechargeBoostTimeSeconds")));
        }
        if (PluginCore.cq.ax.get_Actions().get_CombatMode() == 8)
        {
            PluginCore.cq.n.n.a(type);
            PluginCore.cq.g.a(A_1, PluginCore.cg);
        }
    }
예제 #3
0
        public void Unlock(ActionLockType type)
        {
            bool isLocked = IsLock(type);

            Locks[type]--;
            if (isLocked != IsLock(type))
            {
                if (OnStateOnchanged != null)
                {
                    var args = new StateChangedEventArgs {
                        Type = type, IsLocked = IsLock(type)
                    };
                    OnStateOnchanged(this, args);
                }
            }
        }
예제 #4
0
    public void a(ActionLockType A_0, TimeSpan A_1)
    {
        DateTimeOffset offset = DateTimeOffset.Now + A_1;

        if (this.a.ContainsKey(A_0))
        {
            if (offset > this.a[A_0])
            {
                this.a[A_0] = offset;
            }
        }
        else
        {
            this.a.Add(A_0, offset);
        }
    }
예제 #5
0
 internal void RevertLock(BattleCharacter effectTarget, ActionLockType lockType)
 {
     actionReverts.Add(new RevertActionLock {
         target = effectTarget, type = lockType
     });
 }
예제 #6
0
 public bool IsLock(ActionLockType type)
 {
     return(Locks[type] > 0);
 }
예제 #7
0
 public void a(ActionLockType A_0)
 {
     this.a.Remove(A_0);
 }