Ejemplo n.º 1
0
        public static Process StartProcess(int processId, int createScenes = 0)
        {
            StartProcessConfig startProcessConfig = StartProcessConfigCategory.Instance.Get(processId);
            const string       exe       = "dotnet";
            string             arguments = $"{startProcessConfig.AppName}.dll" +
                                           $" --Process={startProcessConfig.Id}" +
                                           $" --AppType={startProcessConfig.AppName}" +
                                           $" --Develop={Game.Options.Develop}" +
                                           $" --CreateScenes={createScenes}" +
                                           $" --LogLevel={Game.Options.LogLevel}";

            Log.Debug($"{exe} {arguments}");
            Process process = ProcessHelper.Run(exe, arguments);

            return(process);
        }
Ejemplo n.º 2
0
        public void OnGUI()
        {
            selectStartConfigIndex = EditorGUILayout.Popup(selectStartConfigIndex, this.startConfigs);
            this.startConfig       = this.startConfigs[this.selectStartConfigIndex];

            if (GUILayout.Button("Start Server(Single Srocess)"))
            {
                string arguments = $"Server.dll --Process=1 --StartConfig=StartConfig/{this.startConfig} --Console=1";
                ProcessHelper.Run("dotnet.exe", arguments, "../Bin/");
            }

            if (GUILayout.Button("Start Mongo"))
            {
                ProcessHelper.Run("mongod", @"--dbpath=db", "../Database/bin/");
            }
        }
Ejemplo n.º 3
0
        public static void ShowWindow()
        {
            string arguments = $"Server.dll --Process=1 --Console=1";

            ProcessHelper.Run("dotnet.exe", arguments, "../Bin/");
        }
Ejemplo n.º 4
0
 public static void OpenFileServer()
 {
     ProcessHelper.Run("dotnet", "FileServer.dll", "../FileServer/");
 }
Ejemplo n.º 5
0
 public static void DoExcelExport()
 {
     ProcessHelper.Run("Proto2CS.exe", "", "../Tools/Proto2CS/Bin/");
 }
Ejemplo n.º 6
0
 public static void DoExcelExport()
 {
     ProcessHelper.Run("ExcelExporter.exe", "", "../Tools/ExcelExporter/Bin/");
 }