浏览代码

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

Signed-off-by: AMZN-Gene <[email protected]>
AMZN-Gene 2 年之前
父节点
当前提交
dd661693e9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      MPSGameLift/Code/Source/MatchmakingSystemComponent.cpp

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

@@ -29,6 +29,8 @@ namespace MPSGameLift
             //! https://docs.aws.amazon.com/gamelift/latest/apireference/API_Player.html
             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)
                 {
                     return reader.Accept(skill);