Esempio n. 1
0
        /// <summary>
        /// Runs the theming engine over the existing layout to rebuild the game objects from the theme file.
        /// The layout is not built in this stage
        /// </summary>
        public void ReapplyTheme()
        {
            // Emit markers defined by this builder
            dungeonBuilder.EmitMarkers();

            // Emit markers defined by the users (by attaching implementation of DungeonMarkerEmitter behaviors)
            dungeonBuilder.EmitCustomMarkers();

            var themes = GetThemeAssets();

            sceneProvider.OnDungeonBuildStart();

            dungeonBuilder.ApplyTheme(themes, sceneProvider);

            sceneProvider.OnDungeonBuildStop();

            NotifyPostBuild();
        }
Esempio n. 2
0
        /// <summary>
        /// Runs the theming engine over the existing layout to rebuild the game objects from the theme file.
        /// The layout is not built in this stage
        /// </summary>
        public void ReapplyTheme(IDungeonSceneObjectInstantiator objectInstantiator)
        {
            // Emit markers defined by this builder
            dungeonBuilder.EmitMarkers();

            // Emit markers defined by the users (by attaching implementation of DungeonMarkerEmitter behaviors)
            dungeonBuilder.EmitCustomMarkers();

            NotifyMarkersEmitted(dungeonBuilder.PropSockets);

            var themes = GetThemeAssets();

            sceneProvider.OnDungeonBuildStart();

            dungeonBuilder.ApplyTheme(themes, sceneProvider, objectInstantiator);

            sceneProvider.OnDungeonBuildStop();
        }