Exemple #1
0
        public virtual int GetActivityPoints(ActivityPointsType type)
        {
            int value = 0;

            ActivityPoints.TryGetValue(type, out value);
            return(value);
        }
Exemple #2
0
 public virtual void AddActivityPoints(ActivityPointsType type, int value)
 {
     if (this.ActivityPoints.ContainsKey(type))
     {
         ActivityPoints.Add(type, value);
     }
     else
     {
         ActivityPoints[type] += value;
     }
 }
Exemple #3
0
#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;
        }
Exemple #4
0
        private void HandleActivityPoints(InterceptArgs e)
        {
            Points = ActivityPoints.Parse(e.Packet);

            OnLoadedPoints();
        }