Show / Hide Table of Contents

Class UserAchievements

Inheritance
System.Object
UserAchievements
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Players.UserHelpers
Assembly: Eco.Gameplay.dll
Syntax
public class UserAchievements : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged

Constructors

UserAchievements()

Declaration
public UserAchievements()

Fields

TypesCraftedByAchievement

Declaration
public ThreadSafeDictionary<string, HashSet<Type>> TypesCraftedByAchievement
Field Value
Type Description
ThreadSafeDictionary<System.String, System.Collections.Generic.HashSet<System.Type>>

Properties

AchievementCount

Declaration
public int AchievementCount { get; }
Property Value
Type Description
System.Int32

Achievements

Declaration
public IEnumerable<AchievementInstance> Achievements { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<AchievementInstance>

AchievementsChangedEvent

Declaration
public ThreadSafeAction AchievementsChangedEvent { get; }
Property Value
Type Description
ThreadSafeAction

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

OfflineAchievements

Declaration
public ThreadSafeList<AchievementInstance> OfflineAchievements { get; set; }
Property Value
Type Description
ThreadSafeList<AchievementInstance>

Methods

EnterWorld()

Goes over cached achievements for this user and grants them, called when they enter the world

Declaration
public void EnterWorld()

GetAchievement(String)

Declaration
public AchievementInstance GetAchievement(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
AchievementInstance

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

SetAchievement(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 void SetAchievement(AchievementInstance achievementInstance)
Parameters
Type Name Description
AchievementInstance achievementInstance

Achievement to add.

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾