// overload operator + public static MoneySet operator +(MoneySet a, MoneySet b) { var c = new MoneySet(); for (int coin = Money.Copper; coin <= Money.Jewelry; coin++) { c.money[coin] = a.money[coin] + b.money[coin]; } return(c); }
// overload operator + public static MoneySet operator +(MoneySet a, MoneySet b) { var c = new MoneySet(); for (int coin = Money.Copper; coin <= Money.Jewelry; coin++) { c.money[coin] = a.money[coin] + b.money[coin]; } return c; }
private void Init() { spellCastCount = new byte[3, 5]; //stats = new StatValue[6]; stats2 = new PlayerStats(); name = string.Empty; items = new List <Item>(); affects = new List <Affect>(); actions = null; Money = new MoneySet(); spellList = new SpellList(); }
private void Init() { spellCastCount = new byte[3, 5]; //stats = new StatValue[6]; stats2 = new PlayerStats(); name = string.Empty; items = new List<Item>(); affects = new List<Affect>(); actions = null; Money = new MoneySet(); spellList = new SpellList(); }