Add GetUserAvarar to Online Platform interface
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user