Lesson 38 - Anywhere Fleets and EC2 Fleets set up
This commit is contained in:
@@ -276,16 +276,20 @@ void AShooterGameMode::InitGameLift()
|
||||
|
||||
UE_LOG(LogShooterGameMode, Log, TEXT("Initializing the GameLift Server..."));
|
||||
|
||||
if (InitiateConnectionWithGameLiftAgent(ServerParameters, GameLiftSdkModule)) return;
|
||||
BindGameLiftCallbackFunctions(ProcessParameters, GameLiftSdkModule);
|
||||
InitiateProcessReady(ProcessParameters, GameLiftSdkModule);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Using EC2
|
||||
UE_LOG(LogShooterGameMode, Log, TEXT("Using Gamelift EC2 Managed Fleet"));
|
||||
//TODO: Implement EC2 later.
|
||||
UE_LOG(LogShooterGameMode, Log, TEXT("Not Implemented"));
|
||||
|
||||
// EC2: Bind Callbacks (populates logParameters automatically)
|
||||
BindGameLiftCallbackFunctions(ProcessParameters, GameLiftSdkModule);
|
||||
|
||||
// EC2: Empty ServerParameters = GameLift agent provies all config
|
||||
UE_LOG(LogShooterGameMode, Log, TEXT("Initializing EC2 GameLift Server..."));
|
||||
}
|
||||
if (InitiateConnectionWithGameLiftAgent(ServerParameters, GameLiftSdkModule)) return;
|
||||
InitiateProcessReady(ProcessParameters, GameLiftSdkModule);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user