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); }
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/"); } }
public static void ShowWindow() { string arguments = $"Server.dll --Process=1 --Console=1"; ProcessHelper.Run("dotnet.exe", arguments, "../Bin/"); }
public static void OpenFileServer() { ProcessHelper.Run("dotnet", "FileServer.dll", "../FileServer/"); }
public static void DoExcelExport() { ProcessHelper.Run("Proto2CS.exe", "", "../Tools/Proto2CS/Bin/"); }
public static void DoExcelExport() { ProcessHelper.Run("ExcelExporter.exe", "", "../Tools/ExcelExporter/Bin/"); }