Esempio n. 1
0
        /// <summary>
        /// UpdateIndex entry received
        /// </summary>
        /// <param name="stream"></param>
        private void SC_UpdateIndex(PacketStream stream)
        {
            string name     = stream.ReadString();
            string fileHash = stream.ReadString();
            bool   isLegacy = stream.ReadBool();
            bool   isDelete = stream.ReadBool();

            UpdateHandler.Instance.OnUpdateIndexReceived(name, fileHash, isLegacy);
        }
Esempio n. 2
0
        private void SC_ResourceUpdateEntry(PacketStream stream)
        {
            string name     = stream.ReadString();
            string fileHash = stream.ReadString();
            bool   delete   = stream.ReadBool();

            UpdateHandler.Instance.OnResourceEntryReceived(name, fileHash, delete);
        }
Esempio n. 3
0
        private void SC_ReceiveArguments(PacketStream stream)
        {
            int len = stream.ReadInt32();

            byte[] arguments     = stream.ReadBytes(len);
            int    startType     = stream.ReadInt32();
            bool   isMaintenance = stream.ReadBool();

            GUI.Instance.OnArgumentsReceived(desCipher.Decrypt(arguments), startType, isMaintenance);
        }
Esempio n. 4
0
 private void SC_SelfUpdateRequired(PacketStream stream)
 {
     GUI.Instance.OnSelfUpdateCheckCompleted(stream.ReadBool());
 }