コード例 #1
0
        public static bool init(Initializer init)
        {
            myInitializer = init;

            if (!myTaskManager.init(myInitializer))
            {
                return(false);
            }
            if (!myEventManager.init(myInitializer))
            {
                return(false);
            }

            Printer.VerboseLevel vl = (Printer.VerboseLevel)myInitializer.findDataOr <int>("application.verboseLevel", 4);
            Printer.verboseLevel = vl;

            myAppId   = myInitializer.findDataOr <uint>("application.appId", myProcId);
            myMinTime = myInitializer.findDataOr <float>("application.minTick", -1.0f);
            myMaxTime = myInitializer.findDataOr <float>("application.maxTick", -1.0f);

            if (onPostInit != null)
            {
                onPostInit();
            }

            return(true);
        }
コード例 #2
0
ファイル: kernel.cs プロジェクト: an87li/gameEngine
        public static bool init(Initializer init)
        {
            if (!myTaskManager.init(init))
            {
                return(false);
            }
            if (!myEventManager.init(init))
            {
                return(false);
            }

            Printer.VerboseLevel vl = (Printer.VerboseLevel)init.findDataOr <int>("core.verboseLevel", 4);
            Printer.verboseLevel = vl;

            myAppId = init.findDataOr <uint>("network.appId", myProcId);

            myMinTime = init.findDataOr <float>("core.minTick", -1.0f);
            myMaxTime = init.findDataOr <float>("core.maxTick", -1.0f);

            return(true);
        }