| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Monday, January 14, 2019
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | |
| | |
|
| | | public partial class ModelResConfig : ConfigBase {
|
| | |
|
| | | public int ID { get ; private set ; }
|
| | | public string Name { get ; private set; } |
| | | public int Type { get ; private set ; }
|
| | | public string ResourcesName { get ; private set; } |
| | | public string BindPoint { get ; private set; } |
| | | public string Material_Fight_Normal { get ; private set; } |
| | | public string Material_Fight_Suit { get ; private set; } |
| | | public string Material_UI_Normal { get ; private set; } |
| | | public string Material_UI_Suit { get ; private set; } |
| | | public string boneNameList { get ; private set; } |
| | | public string EffFileName { get ; private set; } |
| | | public Vector3 UIOffset { get ; private set; } |
| | | public Vector3 UIRotation { get ; private set; } |
| | | public Vector3 UIScale { get ; private set; } |
| | | public Vector3 Scale { get ; private set; } |
| | | public int RelatedPartID { get ; private set ; }
|
| | | public int ID;
|
| | | public string Name;
|
| | | public int Type;
|
| | | public string ResourcesName;
|
| | | public string BindPoint;
|
| | | public string Material_Fight_Normal;
|
| | | public string Material_Fight_Suit;
|
| | | public string Material_UI_Normal;
|
| | | public string Material_UI_Suit;
|
| | | public string boneNameList;
|
| | | public string EffFileName;
|
| | | public Vector3 UIOffset;
|
| | | public Vector3 UIRotation;
|
| | | public Vector3 UIScale;
|
| | | public Vector3 Scale;
|
| | | public int RelatedPartID;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return ID.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse() {
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out ID);
|
| | |
|
| | | Name = rawContents[1].Trim();
|
| | | Name = contents[1];
|
| | |
|
| | | Type=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out Type);
|
| | |
|
| | | ResourcesName = rawContents[3].Trim();
|
| | | ResourcesName = contents[3];
|
| | |
|
| | | BindPoint = rawContents[4].Trim();
|
| | | BindPoint = contents[4];
|
| | |
|
| | | Material_Fight_Normal = rawContents[5].Trim();
|
| | | Material_Fight_Normal = contents[5];
|
| | |
|
| | | Material_Fight_Suit = rawContents[6].Trim();
|
| | | Material_Fight_Suit = contents[6];
|
| | |
|
| | | Material_UI_Normal = rawContents[7].Trim();
|
| | | Material_UI_Normal = contents[7];
|
| | |
|
| | | Material_UI_Suit = rawContents[8].Trim();
|
| | | Material_UI_Suit = contents[8];
|
| | |
|
| | | boneNameList = rawContents[9].Trim();
|
| | | boneNameList = contents[9];
|
| | |
|
| | | EffFileName = rawContents[10].Trim();
|
| | | EffFileName = contents[10];
|
| | |
|
| | | UIOffset=rawContents[11].Vector3Parse();
|
| | | UIOffset=contents[11].Vector3Parse();
|
| | |
|
| | | UIRotation=rawContents[12].Vector3Parse();
|
| | | UIRotation=contents[12].Vector3Parse();
|
| | |
|
| | | UIScale=rawContents[13].Vector3Parse();
|
| | | UIScale=contents[13].Vector3Parse();
|
| | |
|
| | | Scale=rawContents[14].Vector3Parse();
|
| | | Scale=contents[14].Vector3Parse();
|
| | |
|
| | | RelatedPartID=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | int.TryParse(contents[15],out RelatedPartID);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|