Class UserAchievements
Inheritance
System.Object
UserAchievements
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class UserAchievements : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
UserAchievements()
Declaration
public UserAchievements()
Properties
AchievementCount
Declaration
public int AchievementCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Achievements
Declaration
public IEnumerable<AchievementInstance> Achievements { get; }
Property Value
AchievementsChangedEvent
Declaration
public ThreadSafeAction AchievementsChangedEvent { get; }
Property Value
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
OfflineAchievements
Declaration
public ThreadSafeList<AchievementInstance> OfflineAchievements { get; set; }
Property Value
Methods
EnterWorld()
Goes over cached achievements for this user and grants them, called when they enter the world
Declaration
GetAchievement(String)
Declaration
public AchievementInstance GetAchievement(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Initialize(User)
Declaration
public void Initialize(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
RemoveAchievement(String)
Declaration
public bool RemoveAchievement(string achievementName)
Parameters
Type |
Name |
Description |
System.String |
achievementName |
|
Returns
Type |
Description |
System.Boolean |
|
TryAddAchievement(AchievementInstance)
Attempts to an achievmeent to the appropriate list.
This method will return false if the achievement already exists in the user's achievement list
Declaration
public bool TryAddAchievement(AchievementInstance achievementInstance)
Parameters
Returns
Type |
Description |
System.Boolean |
True on success, otherwise false.
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods