Pārlūkot izejas kodu

Minor code comment about the 'N' key flexmatch uses to interpret rules involving numbers

Signed-off-by: AMZN-Gene <[email protected]>
AMZN-Gene 2 gadi atpakaļ
vecāks
revīzija
dd661693e9

+ 2 - 0
MPSGameLift/Code/Source/MatchmakingSystemComponent.cpp

@@ -29,6 +29,8 @@ namespace MPSGameLift
             //! https://docs.aws.amazon.com/gamelift/latest/apireference/API_Player.html
             //! https://docs.aws.amazon.com/gamelift/latest/apireference/API_Player.html
             bool OnJsonKey(const char* key, AWSCore::JsonReader& reader)
             bool OnJsonKey(const char* key, AWSCore::JsonReader& reader)
             {
             {
+                // Player skill is a number
+                // FlexMatch uses "N" (number) for interpreting how rules are logically compared
                 if (strcmp(key, "N") == 0)
                 if (strcmp(key, "N") == 0)
                 {
                 {
                     return reader.Accept(skill);
                     return reader.Accept(skill);