internal void SetMarker(Player player, Guid lId, string name, int count, bool notify = true) { int oldCount = 0; Marker marker = FindMarker(lId, name); if (marker != null) { oldCount = marker.Count; marker.SetCount((ushort)count); } else if (count > 0) { DataNew.Entities.Marker model = Program.GameEngine.GetMarkerModel(lId); model.Name = name; AddMarker(model, (ushort)count); } }
public void SetMarker(Player player, Card card, Guid id, string name, ushort count) { // Always perform this call (even if player == LocalPlayer) for consistency as markers aren't an exclusive resource card.SetMarker(player, id, name, count); }