/// <summary> /// Spawns this Vendor to every client in given playfield. /// </summary> /// <param name="playfield">Playfield to spawn to</param> public new void SpawnToPlayfield(int playfield) { foreach (Client cli in Program.zoneServer.Clients) { if (cli.Character.PlayField == playfield) { VendingMachineFullUpdate.Send(cli, this); ShopInventory.Send(cli, this); } } }
public static void GetVendorsInPF(Client cli) { int pf = cli.Character.PlayField; foreach (VendingMachine vm in Program.zoneServer.Vendors) { if (vm.PlayField == pf) { VendingMachineFullUpdate.Send(cli, vm); Thread.Sleep(50); } } }