Inheritance: UnityEngine.MonoBehaviour
Ejemplo n.º 1
0
        public static void InitMPClient(KMPManager manager)
        {
            if (Environment.GetCommandLineArgs().Contains("-kmpdebug"))
            {
                Log.MinLogLevel = Log.LogLevels.Debug;
            }
            else if (Environment.GetCommandLineArgs().Count(s => s.Contains("-kmpLogLevel:")) == 1)//if a -kmpLogLevel:[loglevel] is in the arguments
            {
                string logLevel = Environment.GetCommandLineArgs().First(s => s.Contains("-kmpLogLevel:"));
                Log.MinLogLevel = (Log.LogLevels)Enum.Parse(typeof(Log.LogLevels), logLevel.Split(':')[1],true);
            }
            else
            {
                Log.MinLogLevel = Log.LogLevels.Info;
            }

            gameManager = manager;

            Log.Debug("KMP Client version " + KMPCommon.PROGRAM_VERSION);
            Log.Debug("    Created by Shaun Esau and developed by the KMP team http://sesau.ca/ksp/KMP_contribs.html");
            Log.Debug("    Based on Kerbal LiveFeed created by Alfred Lam");

            Log.Info("KMP started in LogLevel {0}",Log.MinLogLevel);

            stopwatch = new Stopwatch();
            stopwatch.Start();

            favorites.Clear();
        }
Ejemplo n.º 2
0
        public static void InitMPClient(KMPManager manager)
        {
            if (Environment.GetCommandLineArgs().Contains("-kmpdebug"))
                Log.MinLogLevel = Log.LogLevels.Debug;
            else
                Log.MinLogLevel = Log.LogLevels.Info;

            gameManager = manager;

            Log.Debug("KMP has been started with debug mode enabled.");

            UnityEngine.Debug.Log("KMP Client version " + KMPCommon.PROGRAM_VERSION);
            UnityEngine.Debug.Log("    Created by Shaun Esau and developed by the KMP team http://sesau.ca/ksp/KMP_contribs.html");
            UnityEngine.Debug.Log("    Based on Kerbal LiveFeed created by Alfred Lam");

            stopwatch = new Stopwatch();
            stopwatch.Start();

            favorites.Clear();
        }
Ejemplo n.º 3
0
        public static void InitMPClient(KMPManager manager)
        {
            gameManager = manager;
            UnityEngine.Debug.Log("KMP Client version " + KMPCommon.PROGRAM_VERSION);
            UnityEngine.Debug.Log("    Created by Shaun Esau");
            UnityEngine.Debug.Log("    Based on Kerbal LiveFeed created by Alfred Lam");

            stopwatch = new Stopwatch();
            stopwatch.Start();

            favorites.Clear();
        }
        public static void InitMPClient(KMPManager manager)
        {
            gameManager = manager;
            UnityEngine.Debug.Log("KMP Client version " + KMPCommon.PROGRAM_VERSION);
            UnityEngine.Debug.Log("    Created by Shaun Esau");
            UnityEngine.Debug.Log("    Based on Kerbal LiveFeed created by Alfred Lam");

            stopwatch = new Stopwatch();
            stopwatch.Start();

            for (int i = 0; i < favorites.Length; i++)
                favorites[i] = String.Empty;
        }
Ejemplo n.º 5
0
        public static void InitMPClient(KMPManager manager)
        {
            gameManager = manager;
            UnityEngine.Debug.Log("KMP Client version " + KMPCommon.PROGRAM_VERSION);
            UnityEngine.Debug.Log("    Created by Shaun Esau and developed by the KMP team http://sesau.ca/ksp/KMP_contribs.html");
            UnityEngine.Debug.Log("    Based on Kerbal LiveFeed created by Alfred Lam");

            stopwatch = new Stopwatch();
            stopwatch.Start();

            favorites.Clear();
        }