Esempio n. 1
0
        public static void Log(string message, LogMessageLevel logLevel)
        {
            if (LogManager.Singleton == null)
            {
                return;
            }

            MogreDesignSupportManager.Log(message, logLevel);
        }
Esempio n. 2
0
        public static bool Deinitialize()
        {
            if (!IsInitialized)
            {
                MogreDesignSupportManager.Log("MogreDesignSupport - Failed Deinitialization: Mogre Design Support was not initialized.", LogMessageLevel.LML_TRIVIAL);
                return(false);
            }

            mogreDesignSupport.Unload();
            mogreDesignSupport = null;
            return(true);
        }
Esempio n. 3
0
        public static bool Initialize(bool loadAllTypes)
        {
            //if field is already initialized do nothing.
            if (IsInitialized)
            {
                MogreDesignSupportManager.Log("MogreDesignSupport - Failed Initialization: already initialized.", LogMessageLevel.LML_TRIVIAL);
                return(false);
            }

            MogreDesignSupportManager.mogreDesignSupport = new MogreDesignSupport();
            MogreDesignSupportManager.mogreDesignSupport.Load(loadAllTypes);

            return(true);
        }