示例#1
0
        private bool isValidWeaponCode(string s)
        {
            string catGenetics = this.getCatGenetics();

            return(BattleCatManagerInstance.InitializeBattleCat(Encoding.UTF8.GetBytes(catGenetics), Encoding.UTF8.GetBytes(s)).SequenceEqual(new byte[]
            {
                95,
                193,
                50,
                12,
                127,
                228,
                98,
                6,
                215,
                46,
                200,
                106,
                251,
                121,
                186,
                119,
                109,
                73,
                35,
                14,
                20
            }));
        }
示例#2
0
 private void VictoryForm_Load(object sender, EventArgs e)
 {
     byte[] data = new byte[]
     {
         74,
         240,
         181,
         167,
         229,
         232,
         186,
         112,
         186,
         234,
         154,
         75,
         116,
         154,
         71,
         235,
         31,
         132,
         41,
         179,
         119,
         137,
         199,
         167,
         215,
         148,
         25,
         196,
         152,
         253,
         227
     };
     byte[] bytes = BattleCatManagerInstance.InitializeBattleCat(Encoding.UTF8.GetBytes(this.Arsenal), data);
     this.flagLabel.Text = Encoding.UTF8.GetString(bytes);
 }