Exemplo n.º 1
0
		public void Init(Service service)
		{
			DataContext = viewModel = new LevelEditorViewModel(service);
			service.ProjectChanged += ResetViewModel;
			service.ContentUpdated +=
				(type, name) => Dispatcher.Invoke(new Action(() => viewModel.UpdateLists()));
			service.ContentDeleted +=
				name => Dispatcher.Invoke(new Action(() => viewModel.UpdateLists()));
		}
Exemplo n.º 2
0
 public void Init(Service service)
 {
     DataContext             = viewModel = new LevelEditorViewModel(service);
     service.ProjectChanged += ResetViewModel;
     service.ContentUpdated +=
         (type, name) => Dispatcher.Invoke(new Action(() => viewModel.UpdateLists()));
     service.ContentDeleted +=
         name => Dispatcher.Invoke(new Action(() => viewModel.UpdateLists()));
 }
Exemplo n.º 3
0
		public LevelEditorCommands(LevelEditorViewModel viewModel)
		{
			this.viewModel = viewModel;
			Level = viewModel.Level;
			Renderer = viewModel.renderer;
			levelObjectHandler = viewModel.levelObjectHandler;
			SelectedLevelObject = viewModel.SelectedLevelObject;
			SelectedTileType = viewModel.SelectedTileType;
			cameraSliders = viewModel.cameraSliders;
		}
Exemplo n.º 4
0
 public LevelEditorCommands(LevelEditorViewModel viewModel)
 {
     this.viewModel      = viewModel;
     Level               = viewModel.Level;
     Renderer            = viewModel.renderer;
     levelObjectHandler  = viewModel.levelObjectHandler;
     SelectedLevelObject = viewModel.SelectedLevelObject;
     SelectedTileType    = viewModel.SelectedTileType;
     cameraSliders       = viewModel.cameraSliders;
 }
Exemplo n.º 5
0
 public PropertyUpdater(LevelEditorViewModel viewModel)
 {
     this.viewModel = viewModel;
 }
 public ContentListUpdater(LevelEditorViewModel viewModel, Service service)
 {
     this.viewModel = viewModel;
     this.service   = service;
 }
Exemplo n.º 7
0
		public WaveHandler(LevelEditorViewModel viewModel)
		{
			this.viewModel = viewModel;
		}
Exemplo n.º 8
0
		public ContentListUpdater(LevelEditorViewModel viewModel, Service service)
		{
			this.viewModel = viewModel;
			this.service = service;
		}
Exemplo n.º 9
0
 public WaveHandler(LevelEditorViewModel viewModel)
 {
     this.viewModel = viewModel;
 }
Exemplo n.º 10
0
		public PropertyUpdater(LevelEditorViewModel viewModel)
		{
			this.viewModel = viewModel;
		}