Exemplo n.º 1
0
        public void HandleMacroDrop(GSPacketIn pkg)
        {
            Dictionary <int, int> temp = new Dictionary <int, int>();
            int num1 = pkg.ReadInt();

            for (int index = 0; index < num1; ++index)
            {
                int key  = pkg.ReadInt();
                int num2 = pkg.ReadInt();
                temp.Add(key, num2);
            }
            MacroDropMgr.DropNotice(temp);
            this.NeedSyncMacroDrop = true;
        }
Exemplo n.º 2
0
        public void HandleMacroDrop(GSPacketIn pkg)
        {
            Dictionary <int, int> temp = new Dictionary <int, int>();
            int count = pkg.ReadInt();

            for (int i = 0; i < count; i++)
            {
                int templateId = pkg.ReadInt();
                int dropCount  = pkg.ReadInt();
                temp.Add(templateId, dropCount);
            }
            MacroDropMgr.DropNotice(temp);
            NeedSyncMacroDrop = true;
        }