Add GetUserAvarar to Online Platform interface

This commit is contained in:
2026-08-10 14:58:18 +02:00
parent a7baf9ca37
commit 809f469404
+11
View File
@@ -7,6 +7,8 @@
#include "Engine/Core/Types/String.h"
#include "Engine/Core/Types/DateTime.h"
class Texture;
/// <summary>
/// Online platform user presence common states.
/// </summary>
@@ -257,6 +259,15 @@ public:
/// <returns>True if failed, otherwise false.</returns>
API_FUNCTION() virtual bool GetUser(API_PARAM(Out) OnlineUser& user, User* localUser = nullptr) = 0;
/// <summary>
/// Gets the player avatar image.
/// </summary>
/// <remarks>Caller has to destroy the returned virtual texture.</remarks>
/// <param name="user">The player to get avatar for.</param>
/// <param name="avatar">The loaded avatar texture, null if cannot get it. Caller has to destroy the returned virtual texture once unused.</param>
/// <returns>True if failed, otherwise false.</returns>
API_FUNCTION() virtual bool GetUserAvarar(const OnlineUser& user, API_PARAM(Out) Texture*& avatar) = 0;
/// <summary>
/// Gets the list of friends of the user from the online platform.
/// </summary>