예제 #1
0
        private void _gs_OnCurrencyUpdate(object sender, CurrencyUpdateArgs e)
        {
            GSTask t = new GSTask();

            t.Type   = (int)GSTask.GSTType.CurrencyUpdate;
            t.Client = null;
            t.Args   = e;

            TaskProcessor.AddTask(t);
        }
예제 #2
0
        void CurrencyUpdteHandler(BinaryReader br)
        {
            CurrencyUpdateArgs args = new CurrencyUpdateArgs();

            args.AccountId   = br.ReadInt32();
            args.NewCurrency = br.ReadInt32();
            args.NewVIP      = br.ReadInt32();

            OnCurrencyUpdate(this, args);
        }
예제 #3
0
        void CurrencyUpdateHandler(Task t)
        {
            CurrencyUpdateArgs args = (CurrencyUpdateArgs)t.Args;

            _server.AuthManager.UpdateAccount(args.AccountId, args.NewCurrency, args.NewVIP);

            // Find the client
            GameClient client = _server.InputThread.FindClientByID(args.AccountId);

            if (client != null)
            {
                // Tell the client
                client.CurrencyUpdate(args.NewCurrency, args.NewVIP);
            }
        }
예제 #4
0
        void CurrencyUpdteHandler(BinaryReader br)
        {
            CurrencyUpdateArgs args = new CurrencyUpdateArgs();
            args.AccountId = br.ReadInt32();
            args.NewCurrency = br.ReadInt32();

            OnCurrencyUpdate(this, args);
        }
예제 #5
0
        private void _gs_OnCurrencyUpdate(object sender, CurrencyUpdateArgs e)
        {
            GSTask t = new GSTask();
            t.Type = (int)GSTask.GSTType.CurrencyUpdate;
            t.Client = null;
            t.Args = e;

            TaskProcessor.AddTask(t);
        }