public static ADamageType CreateFromBinary( MutagenFrame frame, RecordTypeConverter recordTypeConverter) { var majorMeta = frame.GetMajorRecordFrame(); if (majorMeta.FormVersion >= 78) { return(DamageType.CreateFromBinary(frame, recordTypeConverter)); } else { return(DamageTypeIndexed.CreateFromBinary(frame, recordTypeConverter)); } }
public static ADamageType CreateFromBinary( MutagenFrame frame, TypedParseParams?translationParams) { var majorMeta = frame.GetMajorRecordFrame(); if (majorMeta.FormVersion >= 78) { return(DamageType.CreateFromBinary(frame, translationParams)); } else { return(DamageTypeIndexed.CreateFromBinary(frame, translationParams)); } }