コード例 #1
0
    // --------------------------------------------------------------------------------
    // MapReduce
    // --------------------------------------------------------------------------------

    // Get followers
    public static Coroutine GetFollowers(LobbyPlayer player)
    {
        return(GameDB.instance.StartCoroutine(GameDB.MapReduce <string>(
                                                  "AccountToFriends",
                                                  GameDB.GetSearchMapFunction("groups"),
                                                  followersReduceFunction,
                                                  player.accountId,
                                                  data => {
            player.followers = data;

            // Send new followers list
            player.OnFollowersListLoaded();
        }
                                                  )));
    }