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); }
protected virtual void OnPointsUpdated(ActivityPointType type, int amount, int change) => PointsUpdated?.Invoke(this, new PointsUpdatedEventArgs(type, amount, change));
public PointsUpdatedEventArgs(ActivityPointType type, int amount, int change) { Type = type; Amount = amount; Change = change; }