| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Monday, January 28, 2019 |
| | | // [ Date ]: Tuesday, January 29, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public int ID { get ; private set ; }
|
| | | public int FeastDay { get ; private set ; }
|
| | | public int achievementId { get ; private set ; } |
| | | public int[] achievements;
|
| | | public string typeName { get ; private set; } |
| | | public string Icon { get ; private set; } |
| | | |
| | | public override string getKey() |
| | | { |
| | |
| | |
|
| | | FeastDay=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0;
|
| | |
|
| | | achievementId=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | string[] achievementsStringArray = rawContents[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | achievements = new int[achievementsStringArray.Length]; |
| | | for (int i=0;i<achievementsStringArray.Length;i++) |
| | | { |
| | | int.TryParse(achievementsStringArray[i],out achievements[i]); |
| | | }
|
| | | |
| | | typeName = rawContents[3].Trim();
|
| | | |
| | | Icon = rawContents[4].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |