Example #1
0
        public static BodyPart Load(string save)
        {
            if (!save.Contains("#BODYPART#"))
            {
                // OLD Enum based BodyPart
                Old_BodyPart oldBodyPart = V_Animation.GetEnumFromString <Old_BodyPart>(save);
                return(new BodyPart((int)oldBodyPart));
            }
            string[] content = V_Animation.SplitString(save, "#BODYPART#");

            int preset = V_Animation.Parse_Int(content[0]);

            V_Animation.StringArrPushIfIndex(1, ref content, ((Old_BodyPart)preset).ToString());
            string customName = content[1];

            return(new BodyPart(preset, customName));
        }