I followed instructions to build GameLiftServerSDK for UE4 and referred to this sample using STL to figure out a way to use the SDK. However, After building UE4 with the SDK, I realized that if I don’t define “GAMELIFT_USE_STD” as a preprocessor, Gomoku sample is not useful for me because I don’t have an idea to apply it without STL to my project.
The code below, is a snippet of the SDK not using STL.
ProcessParameters( StartGameSessionFn onStartGameSession, void* startGameSessionState, UpdateGameSessionFn onUpdateGameSession, void* updateGameSessionState, ProcessTerminateFn onProcessTerminate, void* processTerminateState, HealthCheckFn onHealthCheck, void* healthCheckState, int port, const Aws::GameLift::Server::LogParameters logParameters)
The code below, shows how to initialize “ProcessParameters” using STL.
auto processReadyParameter = Aws::GameLift::Server::ProcessParameters( std::bind(&GameLiftManager::OnStartGameSession, this, std::placeholders::_1), std::bind(&GameLiftManager::OnProcessTerminate, this), std::bind(&GameLiftManager::OnHealthCheck, this), listenPort, Aws::GameLift::Server::LogParameters(logPaths));
My question is how can I initialize “ProcessParameters” not using STL as the code above using STL. Could you give a snippet of how to do that?
Anything is appreciated