Antura  1.1.0
Antura.Database.PlayerProfileData Class Reference

Serialized information about the player. Used by the Player Profile. More...

Inheritance diagram for Antura.Database.PlayerProfileData:
Antura.Database.IData Antura.Database.IDataEditable

Public Member Functions

 PlayerProfileData ()
 
 PlayerProfileData (string _Uuid, int _AvatarId, PlayerGender _Gender, PlayerTint _Tint, bool _IsDemoUser, bool _HasFinishedTheGame, bool _HasFinishedTheGameWithAllStars, bool _HasMaxStarsInCurrentPlaySessions, int age, int totalBones, ProfileCompletionState profileCompletion, string currentAnturaCustomization, int comboPlayDays, AnturaSpace.ShopState currentShopState)
 
bool HasFinishedTheGameWithAllStars ()
 
void SetMaxJourneyPosition (JourneyPosition pos)
 
void SetCurrentJourneyPosition (JourneyPosition pos)
 
PlayerProfileAdditionalData GetAdditionalData ()
 
JourneyPosition GetMaxJourneyPosition ()
 
JourneyPosition GetCurrentJourneyPosition ()
 
string GetId ()
 
void SetId (string _Id)
 
override string ToString ()
 

Public Attributes

const string UNIQUE_ID = "1"
 

Properties

string Id [get, set]
 Primary key for the database. Unique, as there is only one row for this table. More...
 
int Timestamp [get, set]
 Timestamp of creation of the profile data. More...
 
string Uuid [get, set]
 Unique identifier for the player. Also used as the name of the database file. Part of PlayerIconData. More...
 
int AvatarId [get, set]
 ID of the avatar icon for this player. Part of PlayerIconData. More...
 
PlayerGender Gender [get, set]
 Gender of the player. Part of PlayerIconData. More...
 
PlayerTint Tint [get, set]
 Tint of the player icon. Part of PlayerIconData. More...
 
bool IsDemoUser [get, set]
 Is this player a demo user? Demo users have all the game unlocked. Part of PlayerIconData. More...
 
bool JourneyCompleted [get, set]
 Has the player completed the whole journey Used only for the player icons in the Home scene. Part of PlayerIconData. More...
 
float TotalScore [get, set]
 general total final overall score Used only for the player icons in the Home scene. Part of PlayerIconData. More...
 
int Age [get, set]
 Age of the player, as selected during profile creation. More...
 
ProfileCompletionState ProfileCompletion [get, set]
 State of completion for the player profile. Can be 0,1,2,3. See PlayerProfile for further details. More...
 
int MaxStage [get, set]
 Maximum journey position: stage reached. More...
 
int MaxLearningBlock [get, set]
 Maximum journey position: learning block reached. More...
 
int MaxPlaySession [get, set]
 Maximum journey position: play session reached. More...
 
int CurrentStage [get, set]
 Current journey position: play session reached. More...
 
int CurrentLearningBlock [get, set]
 Current journey position: learning block reached. More...
 
int CurrentPlaySession [get, set]
 Current journey position: play session reached. More...
 
int TotalBones [get, set]
 Total bones collected. More...
 
string CurrentAnturaCustomization [get, set]
 JSON data for the current customization set on Antura. More...
 
string AdditionalData [get, set]
 JSON-serialized additional data, may be added as needed. More...
 

Detailed Description

Serialized information about the player. Used by the Player Profile.

Constructor & Destructor Documentation

◆ PlayerProfileData() [1/2]

Antura.Database.PlayerProfileData.PlayerProfileData ( )

◆ PlayerProfileData() [2/2]

Antura.Database.PlayerProfileData.PlayerProfileData ( string  _Uuid,
int  _AvatarId,
PlayerGender  _Gender,
PlayerTint  _Tint,
bool  _IsDemoUser,
bool  _HasFinishedTheGame,
bool  _HasFinishedTheGameWithAllStars,
bool  _HasMaxStarsInCurrentPlaySessions,
int  age,
int  totalBones,
ProfileCompletionState  profileCompletion,
string  currentAnturaCustomization,
int  comboPlayDays,
AnturaSpace.ShopState  currentShopState 
)

Member Function Documentation

◆ GetAdditionalData()

PlayerProfileAdditionalData Antura.Database.PlayerProfileData.GetAdditionalData ( )

◆ GetCurrentJourneyPosition()

JourneyPosition Antura.Database.PlayerProfileData.GetCurrentJourneyPosition ( )

◆ GetId()

string Antura.Database.PlayerProfileData.GetId ( )

Implements Antura.Database.IData.

◆ GetMaxJourneyPosition()

JourneyPosition Antura.Database.PlayerProfileData.GetMaxJourneyPosition ( )

◆ HasFinishedTheGameWithAllStars()

bool Antura.Database.PlayerProfileData.HasFinishedTheGameWithAllStars ( )

◆ SetCurrentJourneyPosition()

void Antura.Database.PlayerProfileData.SetCurrentJourneyPosition ( JourneyPosition  pos)

◆ SetId()

void Antura.Database.PlayerProfileData.SetId ( string  _Id)

◆ SetMaxJourneyPosition()

void Antura.Database.PlayerProfileData.SetMaxJourneyPosition ( JourneyPosition  pos)

◆ ToString()

override string Antura.Database.PlayerProfileData.ToString ( )

Member Data Documentation

◆ UNIQUE_ID

const string Antura.Database.PlayerProfileData.UNIQUE_ID = "1"

Property Documentation

◆ AdditionalData

string Antura.Database.PlayerProfileData.AdditionalData
getset

JSON-serialized additional data, may be added as needed.

◆ Age

int Antura.Database.PlayerProfileData.Age
getset

Age of the player, as selected during profile creation.

◆ AvatarId

int Antura.Database.PlayerProfileData.AvatarId
getset

ID of the avatar icon for this player. Part of PlayerIconData.

◆ CurrentAnturaCustomization

string Antura.Database.PlayerProfileData.CurrentAnturaCustomization
getset

JSON data for the current customization set on Antura.

◆ CurrentLearningBlock

int Antura.Database.PlayerProfileData.CurrentLearningBlock
getset

Current journey position: learning block reached.

◆ CurrentPlaySession

int Antura.Database.PlayerProfileData.CurrentPlaySession
getset

Current journey position: play session reached.

◆ CurrentStage

int Antura.Database.PlayerProfileData.CurrentStage
getset

Current journey position: play session reached.

◆ Gender

PlayerGender Antura.Database.PlayerProfileData.Gender
getset

Gender of the player. Part of PlayerIconData.

◆ Id

string Antura.Database.PlayerProfileData.Id
getset

Primary key for the database. Unique, as there is only one row for this table.

◆ IsDemoUser

bool Antura.Database.PlayerProfileData.IsDemoUser
getset

Is this player a demo user? Demo users have all the game unlocked. Part of PlayerIconData.

◆ JourneyCompleted

bool Antura.Database.PlayerProfileData.JourneyCompleted
getset

Has the player completed the whole journey Used only for the player icons in the Home scene. Part of PlayerIconData.

◆ MaxLearningBlock

int Antura.Database.PlayerProfileData.MaxLearningBlock
getset

Maximum journey position: learning block reached.

◆ MaxPlaySession

int Antura.Database.PlayerProfileData.MaxPlaySession
getset

Maximum journey position: play session reached.

◆ MaxStage

int Antura.Database.PlayerProfileData.MaxStage
getset

Maximum journey position: stage reached.

◆ ProfileCompletion

ProfileCompletionState Antura.Database.PlayerProfileData.ProfileCompletion
getset

State of completion for the player profile. Can be 0,1,2,3. See PlayerProfile for further details.

◆ Timestamp

int Antura.Database.PlayerProfileData.Timestamp
getset

Timestamp of creation of the profile data.

◆ Tint

PlayerTint Antura.Database.PlayerProfileData.Tint
getset

Tint of the player icon. Part of PlayerIconData.

◆ TotalBones

int Antura.Database.PlayerProfileData.TotalBones
getset

Total bones collected.

◆ TotalScore

float Antura.Database.PlayerProfileData.TotalScore
getset

general total final overall score Used only for the player icons in the Home scene. Part of PlayerIconData.

◆ Uuid

string Antura.Database.PlayerProfileData.Uuid
getset

Unique identifier for the player. Also used as the name of the database file. Part of PlayerIconData.


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