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

            MogreDesignSupportManager.Log(message, logLevel);
        }
示例#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);
        }
示例#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);
        }