示例#1
0
 public void CopyFrom(MExtKey other)
 {
     // copy message
     message = other.message.ToArray();
     // copy keys
     while (KeysCount > 0)
     {
         RemoveKey(0);
     }
     for (var k = 0; k < other.KeysCount; ++k)
     {
         AddKey(other.GetKey(k));
     }
 }
        MExtKey ExtendKey(MKey baseKey, KeyCode defaultValue)
        {
            var newKey = new MExtKey(baseKey.NameLocalisationId, baseKey.Key, defaultValue, this, baseKey.isEmulator);

            return(newKey);
        }