private void InitializeClasses()
		{
			contentListUpdater = new ContentListUpdater(this, service);
			waveHandler = new WaveHandler(this);
			propertyUpdater = new PropertyUpdater(this);
			xmlSaver = new XmlSaver(service);
			Level = new Level(new Size(12, 12));
			backgroundImageHandler = new BackgroundImageHandler(Level);
			renderer = new LevelDebugRenderer(Level);
			cameraSliders = new CameraSliders(renderer);
			levelObjectHandler = new LevelObjectHandler((int)(Level.Size.Width * Level.Size.Height));
			levelCommands = new LevelEditorCommands(this);
		}
		private void LoadLevel()
		{
			if (!ContentLoader.Exists(contentName, ContentType.Level))
				return;
			DestroyEntitiesAndSetCommands();
			Level = ContentLoader.Load<Level>(contentName);
			levelCommands.Level = Level;
			renderer.RemoveCommands();
			Level.InitializeData();
			renderer = new LevelDebugRenderer(Level);
			levelCommands.Renderer = renderer;
			levelObjectHandler.LevelSize = (int)(Level.Size.Width * Level.Size.Height);
		}
			public CameraSlidersMock(LevelDebugRenderer renderer)
				: base(renderer) {}
Example #4
0
		public CameraSliders(LevelDebugRenderer renderer)
		{
			this.renderer = renderer;
		}
		public void Init()
		{
			ScreenSpace.Current = new Camera2DScreenSpace(Resolve<Window>());
			renderer = new LevelDebugRenderer(new Level(new Size(24, 24)));
		}