From 1dd36eaace9bb5ad9e08ad7aece7e2e01ec9d3c4 Mon Sep 17 00:00:00 2001 From: Pontus Fransson Date: Fri, 14 Feb 2014 14:18:16 +0100 Subject: [PATCH] Changed from ref to value struct. Forgot a System::. --- Code/CLIStandaloneServer/C++StandaloneCLI.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Code/CLIStandaloneServer/C++StandaloneCLI.h b/Code/CLIStandaloneServer/C++StandaloneCLI.h index 5fada27d..2e0d8530 100644 --- a/Code/CLIStandaloneServer/C++StandaloneCLI.h +++ b/Code/CLIStandaloneServer/C++StandaloneCLI.h @@ -14,17 +14,12 @@ enum DanBiasServerReturn DanBiasServerReturn_GameNotCreated, }; -public ref struct ServerInitDesc +public value struct ServerInitDesc { System::String^ serverName; int listenPort; bool broadcast; //Not fully implemented! - ServerInitDesc() - { - serverName = "Game Server"; - listenPort = 15152; - broadcast = true; - }; + }; public value struct GameServerInfo @@ -54,7 +49,7 @@ public: int GameGetMaxClients(); int GameGetGameMode(); int GameGetGameTime(); - String^ GameGetGameName(); + System::String^ GameGetGameName(); bool GameStart(); };