[Fix] Conflicts
This commit is contained in:
@@ -6,13 +6,13 @@ namespace YachtDice.Player
|
||||
{
|
||||
public class DiceCollection
|
||||
{
|
||||
private readonly List<DiceDefinitionSO> ownedDice = new();
|
||||
private readonly List<DiceDefinition> ownedDice = new();
|
||||
|
||||
public event Action OnChanged;
|
||||
|
||||
public IReadOnlyList<DiceDefinitionSO> OwnedDice => ownedDice;
|
||||
public IReadOnlyList<DiceDefinition> OwnedDice => ownedDice;
|
||||
|
||||
public void Add(DiceDefinitionSO definition)
|
||||
public void Add(DiceDefinition definition)
|
||||
{
|
||||
if (definition == null) return;
|
||||
if (OwnsById(definition.Id)) return;
|
||||
@@ -21,7 +21,7 @@ namespace YachtDice.Player
|
||||
OnChanged?.Invoke();
|
||||
}
|
||||
|
||||
public void Remove(DiceDefinitionSO definition)
|
||||
public void Remove(DiceDefinition definition)
|
||||
{
|
||||
if (ownedDice.Remove(definition))
|
||||
OnChanged?.Invoke();
|
||||
|
||||
Reference in New Issue
Block a user