Esempio n. 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.
            currentCommandsCategoriesRenderer = DefaultComposer.GetInstance(CommandsCategoriesRenderers);
            currentCommandsListRenderer       = DefaultComposer.GetInstance(CommandsListRenderers);
            currentHelpCommandRenderer        = DefaultComposer.GetInstance(HelpCommandRenderers);
            currentHelpTopicRenderer          = DefaultComposer.GetInstance(HelpTopicRenderers);
            currentHelpTopicsRenderer         = DefaultComposer.GetInstance(HelpTopicsRenderers);
            currentInventoryRenderer          = DefaultComposer.GetInstance(InventoryRenderers);
            currentPerceivedRoomRenderer      = DefaultComposer.GetInstance(PerceivedRoomRenderers);
            currentPerceivedThingRenderer     = DefaultComposer.GetInstance(PerceivedThingRenderers);
            currentPromptRenderer             = DefaultComposer.GetInstance(PromptRenderers);
            currentScoreRenderer        = DefaultComposer.GetInstance(ScoreRenderers);
            currentSplashScreenRenderer = DefaultComposer.GetInstance(SplashScreenRenderers);
            currentWhoRenderer          = DefaultComposer.GetInstance(WhoRenderers);
        }