diff --git a/Source/Engine/Online/IOnlinePlatform.h b/Source/Engine/Online/IOnlinePlatform.h index 8cfcfa007..708bc9452 100644 --- a/Source/Engine/Online/IOnlinePlatform.h +++ b/Source/Engine/Online/IOnlinePlatform.h @@ -7,6 +7,8 @@ #include "Engine/Core/Types/String.h" #include "Engine/Core/Types/DateTime.h" +class Texture; + /// /// Online platform user presence common states. /// @@ -257,6 +259,15 @@ public: /// True if failed, otherwise false. API_FUNCTION() virtual bool GetUser(API_PARAM(Out) OnlineUser& user, User* localUser = nullptr) = 0; + /// + /// Gets the player avatar image. + /// + /// Caller has to destroy the returned virtual texture. + /// The player to get avatar for. + /// The loaded avatar texture, null if cannot get it. Caller has to destroy the returned virtual texture once unused. + /// True if failed, otherwise false. + API_FUNCTION() virtual bool GetUserAvarar(const OnlineUser& user, API_PARAM(Out) Texture*& avatar) = 0; + /// /// Gets the list of friends of the user from the online platform. ///