минор, добавил имя сервера
This commit is contained in:
Binary file not shown.
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.
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.
Binary file not shown.
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,6 +2,8 @@ serverIP=127.0.0.1
|
||||
serverPort=6000
|
||||
; хост 0 это сервер для json общения
|
||||
hostID=0
|
||||
; имя компа, к которому подключаться
|
||||
hostName=mavis
|
||||
|
||||
;время ожидания перед подключением к серву, подключение должно происходить хогда сервер уже загрузил рабочую карту
|
||||
launchDelay=2
|
||||
|
||||
Reference in New Issue
Block a user