Space Plunder
Loading...
Searching...
No Matches
FUserProfile Struct Reference

#include <BaseData.h>

Inheritance diagram for FUserProfile:

Public Member Functions

bool IsValid () const
 
FUserProfile AddKill ()
 
FUserProfile AddDeath ()
 
float XPProgress () const
 
FUserProfile AddXP (const int32 Value)
 
int32 GetPlayerLevel () const
 
bool operator== (const FUserProfile &Other) const
 

Public Attributes

FString DisplayName = "Name"
 
FString Nickname = "Name"
 
FString ID = "12"
 
int32 ProfilePictureID = 1
 
TArray< int32 > Achievements
 
int32 XP = 0
 
int32 QuestsCompleted = 0
 
float TotalPlayTime = 0.0f
 
int32 MatchesWon = 0
 
int32 MatchesPlayed = 0
 
int32 Kills = 0
 
int32 Deaths = 0
 
int32 Assists = 0
 
int32 Headshots = 0
 
float HighestGameScore = 0
 
int32 ChallengesCompleted = 0
 
int32 Collectables = 0
 
FString TopWeapon = "Weapon"
 
FString TopCharacter = "Character"
 
bool bReady = false
 
int32 XPToLevelUp = 1000
 

Member Function Documentation

◆ AddDeath()

FUserProfile FUserProfile::AddDeath ( )
inline
1299 {
1300 Deaths++;
1301 return *this;
1302 }
int32 Deaths
Definition BaseData.h:1265

◆ AddKill()

FUserProfile FUserProfile::AddKill ( )
inline
1294 {
1295 Kills++;
1296 return *this;
1297 }
int32 Kills
Definition BaseData.h:1263

◆ AddXP()

FUserProfile FUserProfile::AddXP ( const int32 Value)
inline
1308 {
1309 XP += Value;
1310 return *this;
1311 }
int32 XP
Definition BaseData.h:1253

◆ GetPlayerLevel()

int32 FUserProfile::GetPlayerLevel ( ) const
inline
1314 {
1315 return (XP / XPToLevelUp);
1316 }
int32 XPToLevelUp
Definition BaseData.h:1286

◆ IsValid()

bool FUserProfile::IsValid ( ) const
inline
1289 {
1290 if(DisplayName == "Name"){return false;}
1291 return true;
1292 }
FString DisplayName
Definition BaseData.h:1243

◆ operator==()

bool FUserProfile::operator== ( const FUserProfile & Other) const
inline
1322 {
1323 if(DisplayName == Other.DisplayName)
1324 {
1325 return true;
1326 }
1327 // if(ID == Other.ID &&
1328 // DisplayName == Other.DisplayName)
1329 // {
1330 // Result = true;
1331 // }
1332 return false;
1333 }

◆ XPProgress()

float FUserProfile::XPProgress ( ) const
inline
1304 {
1305 return static_cast<float>(XP % XPToLevelUp) / static_cast<float>(XPToLevelUp);
1306 }

Member Data Documentation

◆ Achievements

TArray<int32> FUserProfile::Achievements

◆ Assists

int32 FUserProfile::Assists = 0

◆ bReady

bool FUserProfile::bReady = false

◆ ChallengesCompleted

int32 FUserProfile::ChallengesCompleted = 0

◆ Collectables

int32 FUserProfile::Collectables = 0

◆ Deaths

int32 FUserProfile::Deaths = 0

◆ DisplayName

FString FUserProfile::DisplayName = "Name"

◆ Headshots

int32 FUserProfile::Headshots = 0

◆ HighestGameScore

float FUserProfile::HighestGameScore = 0

◆ ID

FString FUserProfile::ID = "12"

◆ Kills

int32 FUserProfile::Kills = 0

◆ MatchesPlayed

int32 FUserProfile::MatchesPlayed = 0

◆ MatchesWon

int32 FUserProfile::MatchesWon = 0

◆ Nickname

FString FUserProfile::Nickname = "Name"

◆ ProfilePictureID

int32 FUserProfile::ProfilePictureID = 1

◆ QuestsCompleted

int32 FUserProfile::QuestsCompleted = 0

◆ TopCharacter

FString FUserProfile::TopCharacter = "Character"

◆ TopWeapon

FString FUserProfile::TopWeapon = "Weapon"

◆ TotalPlayTime

float FUserProfile::TotalPlayTime = 0.0f

◆ XP

int32 FUserProfile::XP = 0

◆ XPToLevelUp

int32 FUserProfile::XPToLevelUp = 1000

The documentation for this struct was generated from the following file: