минор, добавил имя сервера

This commit is contained in:
Andron666
2021-09-29 12:23:50 +05:00
parent 8464e8e6cc
commit 25eb5a3e64
26 changed files with 15041 additions and 1922 deletions
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+7 -1
View File
@@ -365,4 +365,10 @@ void UCPPGameInstance::SendStatus(int32 NumberStatus,FString command)
void UCPPGameInstance::runSelf(FString argument)
{
FPlatformProcess::CreateProc(FPlatformProcess::ExecutableName(false), *argument, true, false, false, NULL, 0, NULL, NULL);
}
}
FString UCPPGameInstance::getPCname()
{
const TCHAR *name = FPlatformProcess::ComputerName();
return FString(name);
}
+2
View File
@@ -80,4 +80,6 @@ public:
static void SetWinSize(int sizeX, int sizeY);
UFUNCTION(BlueprintCallable, Category = "Custom",meta=(ToolTip="execute this app again with argument"))
static void runSelf(FString argument);
UFUNCTION(BlueprintCallable,BlueprintPure, Category = "Custom", meta = (ToolTip = "get net name of this machine"))
FString getPCname();
};
+2
View File
@@ -2,6 +2,8 @@ serverIP=127.0.0.1
serverPort=6000
; хост 0 это сервер для json общения
hostID=0
; имя компа, к которому подключаться
hostName=mavis
;время ожидания перед подключением к серву, подключение должно происходить хогда сервер уже загрузил рабочую карту
launchDelay=2