示例#1
0
        /// <summary>Recompose the subcomponents of this Renderer.</summary>
        public void Recompose()
        {
            DefaultComposer.Container.ComposeParts(this);

            // Search each of the renderers for the one which has the highest priority.
            this.currentCommandsCategoriesRenderer = DefaultComposer.GetInstance(this.CommandsCategoriesRenderers);
            this.currentCommandsListRenderer       = DefaultComposer.GetInstance(this.CommandsListRenderers);
            this.currentHelpCommandRenderer        = DefaultComposer.GetInstance(this.HelpCommandRenderers);
            this.currentHelpTopicRenderer          = DefaultComposer.GetInstance(this.HelpTopicRenderers);
            this.currentHelpTopicsRenderer         = DefaultComposer.GetInstance(this.HelpTopicsRenderers);
            this.currentInventoryRenderer          = DefaultComposer.GetInstance(this.InventoryRenderers);
            this.currentPerceivedRoomRenderer      = DefaultComposer.GetInstance(this.PerceivedRoomRenderers);
            this.currentPerceivedThingRenderer     = DefaultComposer.GetInstance(this.PerceivedThingRenderers);
            this.currentScoreRenderer        = DefaultComposer.GetInstance(this.ScoreRenderers);
            this.currentSplashScreenRenderer = DefaultComposer.GetInstance(this.SplashScreenRenderers);
            this.currentWhoRenderer          = DefaultComposer.GetInstance(this.WhoRenderers);
        }