Beispiel #1
0
 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];
     }
 }
Beispiel #2
0
        public override bool Equals(object obj)
        {
            if (!(obj is EIGen3Key))
            {
                return(false);
            }

            EIGen3Key rhs = (EIGen3Key)obj;

            return(Mask.Equals(rhs.Mask));
        }
Beispiel #3
0
 /// <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);
     }
 }