/// <summary> /// Initializes a new instance of the <see cref="HoloStudio" /> class. /// </summary> public HoloStudio() { // Creates a graphics manager. This is mandatory. _graphicsDeviceManager = new GraphicsDeviceManager(this); // Setup the relative directory to the executable directory // for loading contents with the ContentManager Content.RootDirectory = "Content"; // Initialize input keyboard system _keyboardManager = new KeyboardManager(this); Services.AddService(_keyboardManager); // Add service for tweaking _tweakableManager = new TweakableManager(this); Services.AddService(_tweakableManager); _tweakableManager.TextColor = Color.Yellow; CenterX = 0; CenterY = 0; CenterZ = 1; Radius = 1; _orbitCamera = new OrbitCamera(); _orbitCamera.Radius = 1.0f; _orbitCamera.Speed = 2.0f; _orbitCamera.ZoomSpeed = 0.1f; Floor = -1; Ceiling = 2; }
private void CreateManagers() { TweakerOptionFlags flags = Options.Flags; if ((flags & TweakerOptionFlags.ScanForInvokables) != 0) { Invokables = new InvokableManager(Scanner, Options); } else { Invokables = new InvokableManager(null, Options); } if ((flags & TweakerOptionFlags.ScanForTweakables) != 0) { Tweakables = new TweakableManager(Scanner, Options); } else { Tweakables = new TweakableManager(null, Options); } if ((flags & TweakerOptionFlags.ScanForWatchables) != 0) { Watchables = new WatchableManager(Scanner, Options); } else { Watchables = new WatchableManager(); } }