/// <summary> /// DebugTextListener クラスの新しいインスタンスを初期化します。 /// </summary> /// <param name="debugText">表示先の DebugText オブジェクト。</param> public DebugTextListener(DebugText debugText) { if (debugText == null) throw new ArgumentNullException("debugText"); this.debugText = debugText; this.startupTime = DateTime.Now; }
/// <summary> /// ウィンドウオプションを指定して SitrineWindow クラスの新しいインスタンスを初期化します。 /// </summary> /// <param name="options">ウィンドウオプション。</param> public SitrineWindow(WindowOptions options) : base(options.WindowSize.Width, options.WindowSize.Height, GraphicsMode.Default, options.Title) { if (options == null) throw new ArgumentNullException("options"); this.music = new MusicPlayer(new MusicOptions()); this.textures = new TextureList(); this.TargetSize = options.TargetSize; this.textOptions = options.TextOptions; this.stories = new List<Storyboard>(); this.renderStories = new List<RenderStoryboard>(); this.reservedStories = new List<Storyboard>(); this.removingStories = new List<Storyboard>(); this.debugText = new DebugText(options.DebugTextOptions, this); Trace.Listeners.Add(new DebugTextListener(this.debugText)); Trace.WriteLine("Window", "Init"); }