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); }
void CurrencyUpdteHandler(BinaryReader br) { CurrencyUpdateArgs args = new CurrencyUpdateArgs(); args.AccountId = br.ReadInt32(); args.NewCurrency = br.ReadInt32(); args.NewVIP = br.ReadInt32(); OnCurrencyUpdate(this, args); }
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); } }
void CurrencyUpdteHandler(BinaryReader br) { CurrencyUpdateArgs args = new CurrencyUpdateArgs(); args.AccountId = br.ReadInt32(); args.NewCurrency = br.ReadInt32(); OnCurrencyUpdate(this, args); }