public ResourceValue(int amount) { this.source = ResourceValueSource.Const; this.amount = Math.Abs(amount); this.positive = amount >= 0; }
public ResourceValue(bool positive, ResourceValueSource source, int amount = 0) { this.source = source; this.amount = amount; this.positive = positive; }