Beispiel #1
0
 public static string GetCharaPathMsgPack(string charaName, Character.SEX sex)
 {
     if (sex == Character.SEX.MALE)
     {
         return(Path.GetFullPath(Path.Combine(Application.dataPath, @"..\UserData\Chara\male\" + charaName + ".bonemod")));
     }
     else
     {
         return(Path.GetFullPath(Path.Combine(Application.dataPath, @"..\UserData\Chara\female\" + charaName + ".bonemod")));
     }
 }
Beispiel #2
0
        public static Dictionary <int, BoneModifier> LoadBoneModifiers(string charaName, Character.SEX sex)
        {
            string path;

            if (sex == Character.SEX.MALE)
            {
                path = defaultMaleBMPath;
                if (charaName != null || charaName != "")
                {
                    var temppath = Path.GetFullPath(Path.Combine(Application.dataPath, @"..\UserData\Chara\male\" + charaName + ".png.bmm.txt"));
                    if (File.Exists(temppath))
                    {
                        path = temppath;
                    }
                }
            }
            else
            {
                path = defaultBMPath;
                if (charaName != null || charaName != "")
                {
                    var temppath = Path.GetFullPath(Path.Combine(Application.dataPath, @"..\UserData\Chara\female\" + charaName + ".png.bmm.txt"));
                    if (File.Exists(temppath))
                    {
                        path = temppath;
                    }
                }
            }
            return(_LoadBoneModifiers(path));
        }