public virtual int GetActivityPoints(ActivityPointsType type) { int value = 0; ActivityPoints.TryGetValue(type, out value); return(value); }
public virtual void AddActivityPoints(ActivityPointsType type, int value) { if (this.ActivityPoints.ContainsKey(type)) { ActivityPoints.Add(type, value); } else { ActivityPoints[type] += value; } }
#pragma warning restore CS8618 private void Reset() { _tcsUserData = new TaskCompletionSource <IUserData>(); _taskUserData = _tcsUserData.Task; UserData = null; Points = new ActivityPoints(); Achievements = null; _tcsUserData = null; _isLoadingCredits = false; }
private void HandleActivityPoints(InterceptArgs e) { Points = ActivityPoints.Parse(e.Packet); OnLoadedPoints(); }