Example #1
0
        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));
            }
        }
Example #2
0
        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));
            }
        }