Forráskód Böngészése

Minor updates based on PR feedback

Signed-off-by: Gene Walters <[email protected]>
Gene Walters 2 éve
szülő
commit
645bf41c8c

+ 2 - 2
Config/default_aws_resource_mappings.json

@@ -1,6 +1,6 @@
 {
     "AWSResourceMappings": {},
     "AccountId": "",
-    "Region": "us-west-2",
+    "Region": "",
     "Version": "1.0.0"
-}
+}

+ 2 - 3
MPSGameLift/Code/Source/MPSGameLiftClientSystemComponent.cpp

@@ -45,7 +45,6 @@ namespace MPSGameLift
 
     void MPSGameLiftClientSystemComponent::Init()
     {
-        m_playerId = AZ::Uuid::Create().ToString<AZStd::string>();
     }
 
     void MPSGameLiftClientSystemComponent::Activate()
@@ -67,11 +66,11 @@ namespace MPSGameLift
         JoinSessionInternal(consoleFunctionParameters[0], m_playerId);
     }
 
-    void MPSGameLiftClientSystemComponent::JoinSessionInternal(AZStd::string_view sessionId, AZStd::string_view playerId)
+    void MPSGameLiftClientSystemComponent::JoinSessionInternal(AZStd::string_view sessionId, const AZ::Uuid& playerId)
     {
         AWSGameLift::AWSGameLiftJoinSessionRequest request;
         request.m_sessionId = sessionId;
-        request.m_playerId = playerId;
+        request.m_playerId = playerId.ToString<AZStd::string>();
 
         AWSGameLift::AWSGameLiftSessionAsyncRequestBus::Broadcast(
             &AWSGameLift::AWSGameLiftSessionAsyncRequestBus::Events::JoinSessionAsync, request);

+ 2 - 2
MPSGameLift/Code/Source/MPSGameLiftClientSystemComponent.h

@@ -35,8 +35,8 @@ namespace MPSGameLift
         AZ_CONSOLEFUNC(MPSGameLiftClientSystemComponent, JoinSession, AZ::ConsoleFunctorFlags::DontReplicate, "Join an existing game session");
 
     private:
-        void JoinSessionInternal(const AZStd::string& sessionId, const AZStd::string& playerId);
+        void JoinSessionInternal(AZStd::string_view sessionId, const AZ::Uuid& playerId);
 
-        AZStd::string m_playerId; // Unique identifier for the current player inside the game session
+        AZ::Uuid m_playerId = AZ::Uuid::Create(); // Unique identifier for the current player inside the game session
     };
 }

+ 1 - 1
Registry/awscoreconfiguration.setreg

@@ -7,4 +7,4 @@
             "ResourceMappingConfigFileName": "default_aws_resource_mappings.json"
         }
     } 
-}
+}

+ 2 - 2
project.json

@@ -14,8 +14,8 @@
     "icon_path": "preview.png",
     "engine": "o3de",
     "external_subdirectories": [
-        "MPSGameLift",
-        "Gem"
+        "Gem",
+        "MPSGameLift"
     ],
     "gem_names": [
         "character_mps",