| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, January 30, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class HolidayHomingPointConfig : ConfigBase { |
| | | |
| | | public int Id { get ; private set ; }
|
| | | public string ImageType1 { get ; private set; } |
| | | public string ImageType2 { get ; private set; } |
| | | public string name { get ; private set; } |
| | | public float Zoom { get ; private set; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return Id.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | Id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class HolidayHomingPointConfig : ConfigBase {
|
| | |
|
| | | public int Id;
|
| | | public string ImageType1;
|
| | | public string ImageType2;
|
| | | public string name;
|
| | | public float Zoom;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return Id.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out Id);
|
| | |
|
| | | ImageType1 = rawContents[1].Trim();
|
| | | ImageType1 = contents[1];
|
| | |
|
| | | ImageType2 = rawContents[2].Trim();
|
| | | ImageType2 = contents[2];
|
| | |
|
| | | name = rawContents[3].Trim();
|
| | | name = contents[3];
|
| | |
|
| | | Zoom=IsNumeric(rawContents[4]) ? float.Parse(rawContents[4]):0; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | float.TryParse(contents[4],out Zoom);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|