示例#1
0
        private void HandleActivityPointNotification(InterceptArgs e)
        {
            int amount             = e.Packet.ReadInt();
            int change             = e.Packet.ReadInt();
            ActivityPointType type = (ActivityPointType)e.Packet.ReadInt();

            Points[type] = amount;

            OnPointsUpdated(type, amount, change);
        }
示例#2
0
 protected virtual void OnPointsUpdated(ActivityPointType type, int amount, int change)
 => PointsUpdated?.Invoke(this, new PointsUpdatedEventArgs(type, amount, change));
示例#3
0
 public PointsUpdatedEventArgs(ActivityPointType type, int amount, int change)
 {
     Type   = type;
     Amount = amount;
     Change = change;
 }