示例#1
0
 protected Music(string contentName, SoundDevice device)
     : base(contentName)
 {
     this.device = device;
     Loop = false;
     cachedVolume = Settings.Current.MusicVolume;
 }
示例#2
0
		public Game(Window window, SoundDevice soundDevice)
		{
			new Player("Player");
			new TowerTargetFinder();
			window.BackgroundColor = Color.Black;
			InitializeWindowAndSoundDevice(window, soundDevice);
			new Command(Command.Exit, ExitGame);
			Add(new InGameCommands());
			new MenuController();
			ShowMainMenu();
		}
示例#3
0
 protected Music(string filename, SoundDevice device)
     : base(filename)
 {
     this.device = device;
 }
 private void SetupSoundDeviceMock()
 {
     var mockSoundDevice = testResolver.RegisterMock<SoundDevice>();
     soundDevice = mockSoundDevice.Object;
 }
示例#5
0
		protected Video(string contentName, SoundDevice device)
			: base(contentName)
		{
			this.device = device;
		}
示例#6
0
		private static void InitializeWindowAndSoundDevice(Window window, SoundDevice soundDevice)
		{
			AppWindow = window;
			SoundDevice = soundDevice;
		}