| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, November 08, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class VIPAwardConfig : ConfigBase { |
| | | |
| | | public int VIPLV { get ; private set ; }
|
| | | public string VIPgift { get ; private set; } |
| | | public int GiftPrice { get ; private set ; }
|
| | | public int OldPrice { get ; private set ; }
|
| | | public string specialGiftIcon { get ; private set; } |
| | | public string privilegeIcon1 { get ; private set; } |
| | | public string privilegeIcon2 { get ; private set; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return VIPLV.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | VIPLV=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Tuesday, February 12, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class VIPAwardConfig : ConfigBase {
|
| | |
|
| | | public int VIPLV;
|
| | | public string VIPgift;
|
| | | public int GiftPrice;
|
| | | public int OldPrice;
|
| | | public string specialGiftIcon;
|
| | | public string privilegeIcon1;
|
| | | public string privilegeIcon2;
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return VIPLV.ToString();
|
| | | }
|
| | |
|
| | | public override void Parse(string content) {
|
| | | try
|
| | | {
|
| | | var contents = content.Split('\t');
|
| | |
|
| | | int.TryParse(contents[0],out VIPLV);
|
| | |
|
| | | VIPgift = rawContents[1].Trim();
|
| | | VIPgift = contents[1];
|
| | |
|
| | | GiftPrice=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out GiftPrice);
|
| | |
|
| | | OldPrice=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | int.TryParse(contents[3],out OldPrice);
|
| | |
|
| | | specialGiftIcon = rawContents[4].Trim();
|
| | | specialGiftIcon = contents[4];
|
| | |
|
| | | privilegeIcon1 = rawContents[5].Trim();
|
| | | privilegeIcon1 = contents[5];
|
| | |
|
| | | privilegeIcon2 = rawContents[6].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | privilegeIcon2 = contents[6];
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|