private void NewGun(Gun gun)
 {
     _renderer.MessageBox.Add(Renderer.Message.NewGun(gun.ID, gun.Position, (int)gun.GunType, gun.Level));
     Application.Current.Dispatcher.BeginInvoke(new Action(_gameFieldWindow.GunAdded));
 }
        private System.Collections.IEnumerable InitSelector(Gun.Type type)
        {
            var guns = new ObservableCollection<GunShopItem>();
            foreach (var level in Enumerable.Range(0, Gun.NumLevels))
            {
                guns.Add(new GunShopItem()
                {
                    Type = type,
                    Level = level,
                    Price = Gun.Price(type, level),
                    IsSelectable = false
                });
            }

            return guns;
        }