| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, July 31, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Wednesday, August 15, 2018
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | | using System;
|
| | |
|
| | | namespace TableConfig {
|
| | |
|
| | | |
| | | public partial class StoreConfig : ConfigBase {
|
| | |
|
| | | public int ID { get ; private set ; }
|
| | |
| | | public string SalesStatus { get ; private set; }
|
| | | public int TheOnlyShop { get ; private set ; }
|
| | | public int RemindSuccess { get ; private set ; }
|
| | | |
| | | public int IsHideSellOut { get ; private set ; }
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | | return ID.ToString();
|
| | | } |
| | | |
| | | public override void Parse() { |
| | | }
|
| | |
|
| | | public override void Parse() {
|
| | | try
|
| | | {
|
| | | ID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0;
|
| | |
| | |
|
| | | RefreshType=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0;
|
| | |
|
| | | string[] VIPLVStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | VIPLV = new int[VIPLVStringArray.Length]; |
| | | for (int i=0;i<VIPLVStringArray.Length;i++) |
| | | { |
| | | int.TryParse(VIPLVStringArray[i],out VIPLV[i]); |
| | | string[] VIPLVStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
| | | VIPLV = new int[VIPLVStringArray.Length];
|
| | | for (int i=0;i<VIPLVStringArray.Length;i++)
|
| | | {
|
| | | int.TryParse(VIPLVStringArray[i],out VIPLV[i]);
|
| | | }
|
| | |
|
| | | LV=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0;
|
| | |
|
| | | string[] PurchaseNumberStringArray = rawContents[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | PurchaseNumber = new int[PurchaseNumberStringArray.Length]; |
| | | for (int i=0;i<PurchaseNumberStringArray.Length;i++) |
| | | { |
| | | int.TryParse(PurchaseNumberStringArray[i],out PurchaseNumber[i]); |
| | | string[] PurchaseNumberStringArray = rawContents[12].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries);
|
| | | PurchaseNumber = new int[PurchaseNumberStringArray.Length];
|
| | | for (int i=0;i<PurchaseNumberStringArray.Length;i++)
|
| | | {
|
| | | int.TryParse(PurchaseNumberStringArray[i],out PurchaseNumber[i]);
|
| | | }
|
| | |
|
| | | MoneyType=IsNumeric(rawContents[13]) ? int.Parse(rawContents[13]):0;
|
| | |
| | | TheOnlyShop=IsNumeric(rawContents[18]) ? int.Parse(rawContents[18]):0;
|
| | |
|
| | | RemindSuccess=IsNumeric(rawContents[19]) ? int.Parse(rawContents[19]):0;
|
| | | |
| | | IsHideSellOut=IsNumeric(rawContents[20]) ? int.Parse(rawContents[20]):0; |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | |
|