You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
702 B
34 lines
702 B
using System;
|
|
using System.ComponentModel;
|
|
|
|
namespace TheGameExtreme.model
|
|
{
|
|
public class Card : INotifyPropertyChanged
|
|
{
|
|
|
|
public event PropertyChangedEventHandler PropertyChanged;
|
|
private int value;
|
|
public int Value
|
|
{
|
|
get { return value; }
|
|
set {
|
|
this.value = value;
|
|
OnPropertyChange("Value");
|
|
}
|
|
}
|
|
private void OnPropertyChange(string v)
|
|
{
|
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(v));
|
|
}
|
|
|
|
public Effect Effect { get; private set; }
|
|
|
|
|
|
public Card(int value)
|
|
{
|
|
Value = value;
|
|
}
|
|
|
|
}
|
|
}
|