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); }
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); } }
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); } } }
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); } }
internal void RevertLock(BattleCharacter effectTarget, ActionLockType lockType) { actionReverts.Add(new RevertActionLock { target = effectTarget, type = lockType }); }
public bool IsLock(ActionLockType type) { return(Locks[type] > 0); }
public void a(ActionLockType A_0) { this.a.Remove(A_0); }