public InjuryPropsStats(InjuryProps p) { this.painPerSeverity = p.painPerSeverity; this.averagePainPerSeverityPermanent = p.averagePainPerSeverityPermanent; this.bleedRate = p.bleedRate; this.canMerge = p.canMerge; this.destroyedLabel = p.destroyedLabel; this.destroyedOutLabel = p.destroyedOutLabel; this.useRemovedLabel = p.useRemovedLabel; }
public InjuryPropsWidget(InjuryProps injuryProps) { this.inputWidgets = new List <IInputWidget>() { new FloatInputWidget <InjuryProps>(injuryProps, "Pain Per Severity", p => p.painPerSeverity, (p, v) => p.painPerSeverity = v), new FloatInputWidget <InjuryProps>(injuryProps, "Average Pain Per Severity Permanent", p => p.averagePainPerSeverityPermanent, (p, v) => p.averagePainPerSeverityPermanent = v), new FloatInputWidget <InjuryProps>(injuryProps, "Bleed Rate", p => p.bleedRate, (p, v) => p.bleedRate = v), new BoolInputWidget <InjuryProps>(injuryProps, "Can Merge", p => p.canMerge, (p, v) => p.canMerge = v), new BoolInputWidget <InjuryProps>(injuryProps, "Use Removed Label", p => p.useRemovedLabel, (p, v) => p.useRemovedLabel = v), }; }