public void UnlockKey(EIGen3Key key) { m_log.Trace("Unlocking clicker key '{0}'", key.ToString()); for (int i = 0; i < Mask.Length; i++) { Mask[i] ^= key.Mask[i]; } }
public override bool Equals(object obj) { if (!(obj is EIGen3Key)) { return(false); } EIGen3Key rhs = (EIGen3Key)obj; return(Mask.Equals(rhs.Mask)); }
/// <summary> /// Locks unused choice keys /// </summary> public void LockChoiceKeys(int numChoices) { if (numChoices == -1) { return; } for (int i = numChoices; i < EIGen3Key.AnswerChoices.Length; i++) { EIGen3Key key = EIGen3Key.AnswerChoices[i]; m_log.Trace("Locking clicker key '{0}'", key.ToString()); LockKey(key); } }