public RewardEntry(Type type, int price, int cliloc, int rewardtitle, int[] hues, int tile, int hue, OnRewardChosen onRewardChosen) { m_Type = type; m_Price = price; m_Cliloc = cliloc; m_Hues = hues; m_RewardTitle = rewardtitle; m_Tile = tile; m_Hue = hue; m_OnRewardChosen = onRewardChosen; Rectangle2D bounds = ItemBounds.Table[m_Tile]; m_X = bounds.X; m_Y = bounds.Y; m_Width = bounds.Width; m_Height = bounds.Height; }
public ConditionalRewardEntry(Type type, int price, int cliloc, int tile, int hue, OnRewardChosen onRewardChosen, RewardChecker checker) : base(type, price, cliloc, 0, null, tile, hue, onRewardChosen) { m_Checker = checker; }