MPlatformSocialSubsystem
- Module
- Networking
- Header
#include "Networking/Subsystems/MPlatformSocialSubsystem.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Public functions
| Returns | Name | Description |
|---|---|---|
int | RefreshFriends | first. |
int | GetFriendCount | |
uint64_t | GetFriendIdAt | |
std::string | GetFriendNameAt | |
std::string | GetFriendPlatformAt | "Steam" or "Discord". |
int | GetFriendPresenceAt | 0 offline, 1 online elsewhere, 2 playing this game. |
std::string | GetFriendStatusAt | |
uint64_t | GetFriendLobbyIdAt | The lobby the friend is in, 0 when none; JoinFriendAt joins it, or the friend's connect string when they host without a visible lobby. |
std::string | GetFriendAvatarPathAt | The path an image widget loads the friend's avatar from; it fills in once the platform delivers the pixels (GetChangeSerial moves when it does). |
std::string | GetAvatarPath | |
bool | JoinFriendAt | Starts joining the friend's lobby on their platform. |
void | MarkPlayedWith | Marks a player met in this session so the platform lists them as a recent player. |
int | GetChangeSerial | Moves whenever lobby data, the roster, a friend, an avatar or an achievement icon changed. |
bool | ShowProfile | Overlay shortcuts on the identity-owning platform. |
bool | ShowStorePage | appId 0 is this game; addToCart opens the store with it in the cart. |
bool | ShowWebPage | |
bool | ShowAchievementsOverlay | |
bool | ShowFriendsOverlay | |
bool | ShowPlatformDialog | The platform's own dialog by name ("friends", "players", "settings", ...). |
int | RefreshAchievements | The player's achievements with the platform's names, descriptions, hidden flags, unlock times and global rarity. |
int | GetAchievementInfoCount | |
std::string | GetAchievementIdAt | |
std::string | GetAchievementNameAt | |
std::string | GetAchievementDescriptionAt | |
bool | IsAchievementHiddenAt | |
bool | IsAchievementUnlockedAt | |
uint64_t | GetAchievementUnlockTimeAt | Unix seconds, 0 while locked. |
float | GetAchievementRarityAt | Percent of all players who unlocked it, negative until the platform has answered RequestAchievementRarity. |
std::string | GetAchievementIconPathAt | |
bool | RequestAchievementRarity | |
bool | IsAchievementRarityPending | |
int | GetUnlockedAchievementCount | |
uint64_t | GetCloudQuotaTotal | Cloud saves: the account's allowance. |
uint64_t | GetCloudQuotaAvailable | |
bool | HasPendingLaunchJoin | True while a join from the launch line (a friend's Join Game while the game was closed) is waiting for the session layer. |
Function details
RefreshFriends
int RefreshFriends()first. A snapshot: the accessors read what the last refresh saw.
GetFriendCount
int GetFriendCount() constGetFriendIdAt
uint64_t GetFriendIdAt(int index) constGetFriendNameAt
std::string GetFriendNameAt(int index) constGetFriendPlatformAt
std::string GetFriendPlatformAt(int index) const"Steam" or "Discord".
GetFriendPresenceAt
int GetFriendPresenceAt(int index) const0 offline, 1 online elsewhere, 2 playing this game.
GetFriendStatusAt
std::string GetFriendStatusAt(int index) constGetFriendLobbyIdAt
uint64_t GetFriendLobbyIdAt(int index) constThe lobby the friend is in, 0 when none; JoinFriendAt joins it, or the friend's connect string when they host without a visible lobby.
GetFriendAvatarPathAt
std::string GetFriendAvatarPathAt(int index) constThe path an image widget loads the friend's avatar from; it fills in once the platform delivers the pixels (GetChangeSerial moves when it does).
GetAvatarPath
std::string GetAvatarPath(const std::string& platform, uint64_t userId) constJoinFriendAt
bool JoinFriendAt(int index)Starts joining the friend's lobby on their platform. The session handoff then runs exactly as for an accepted invite.
MarkPlayedWith
void MarkPlayedWith(const std::string& platform, uint64_t userId)Marks a player met in this session so the platform lists them as a recent player.
GetChangeSerial
int GetChangeSerial() constMoves whenever lobby data, the roster, a friend, an avatar or an achievement icon changed. A graph compares it with the value it last saw.
ShowProfile
bool ShowProfile(uint64_t userId)Overlay shortcuts on the identity-owning platform. False when the overlay is off or the platform has no such page: show the game's own UI then.
ShowStorePage
bool ShowStorePage(int appId, bool addToCart)appId 0 is this game; addToCart opens the store with it in the cart.
ShowWebPage
bool ShowWebPage(const std::string& url, bool modal)ShowAchievementsOverlay
bool ShowAchievementsOverlay()ShowFriendsOverlay
bool ShowFriendsOverlay()ShowPlatformDialog
bool ShowPlatformDialog(const std::string& dialog)The platform's own dialog by name ("friends", "players", "settings", ...).
RefreshAchievements
int RefreshAchievements()The player's achievements with the platform's names, descriptions, hidden flags, unlock times and global rarity. With no platform up the project's own definitions (Config/Achievements.ini) and the local store answer, so the screen works in PIE too.
GetAchievementInfoCount
int GetAchievementInfoCount() constGetAchievementIdAt
std::string GetAchievementIdAt(int index) constGetAchievementNameAt
std::string GetAchievementNameAt(int index) constGetAchievementDescriptionAt
std::string GetAchievementDescriptionAt(int index) constIsAchievementHiddenAt
bool IsAchievementHiddenAt(int index) constIsAchievementUnlockedAt
bool IsAchievementUnlockedAt(int index) constGetAchievementUnlockTimeAt
uint64_t GetAchievementUnlockTimeAt(int index) constUnix seconds, 0 while locked.
GetAchievementRarityAt
float GetAchievementRarityAt(int index) constPercent of all players who unlocked it, negative until the platform has answered RequestAchievementRarity.
GetAchievementIconPathAt
std::string GetAchievementIconPathAt(int index) constRequestAchievementRarity
bool RequestAchievementRarity()IsAchievementRarityPending
bool IsAchievementRarityPending() constGetUnlockedAchievementCount
int GetUnlockedAchievementCount() constGetCloudQuotaTotal
uint64_t GetCloudQuotaTotal() constCloud saves: the account's allowance. 0 / 0 when the platform cannot say.
GetCloudQuotaAvailable
uint64_t GetCloudQuotaAvailable() constHasPendingLaunchJoin
bool HasPendingLaunchJoin() constTrue while a join from the launch line (a friend's Join Game while the game was closed) is waiting for the session layer.