132 lines
3.5 KiB
C#
132 lines
3.5 KiB
C#
//This code create by CodeEngine ,don't modify
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections;
|
|
using Module.Log;
|
|
|
|
namespace GCGame.Table
|
|
{
|
|
|
|
public class Tab_VipBo1ok{
|
|
|
|
public const string TAB_FILE_DATA = "VipBo1ok";
|
|
private const int _varCount = 40;
|
|
|
|
public int GetId()
|
|
{
|
|
return VipLevel;
|
|
}
|
|
|
|
public static bool Validate(string line)
|
|
{
|
|
var segments = 0;
|
|
foreach (char c in line)
|
|
if (c == '\t')
|
|
segments++;
|
|
// Note: skip the 2nd column as it's the description;
|
|
var result = segments == _varCount;
|
|
if (!result)
|
|
LogModule.ErrorLog(string.Format("Load {0} error as CodeSize:{1} not Equal DataSize:{2}", TAB_FILE_DATA, _varCount, segments));
|
|
return result;
|
|
}
|
|
|
|
public Tab_VipBo1ok()
|
|
{
|
|
}
|
|
|
|
public Tab_VipBo1ok(string line)
|
|
{
|
|
var segments = line.Split('\t');
|
|
VipLevel = int.Parse(segments[0]);
|
|
Tips = segments[2].Trim();
|
|
NeedPay = int.Parse(segments[3]);
|
|
RewItem[0] = int.Parse(segments[4]);
|
|
RewItem[1] = int.Parse(segments[6]);
|
|
RewItem[2] = int.Parse(segments[8]);
|
|
RewItem[3] = int.Parse(segments[10]);
|
|
RewItem[4] = int.Parse(segments[12]);
|
|
RewItem[5] = int.Parse(segments[14]);
|
|
RewNum[0] = int.Parse(segments[5]);
|
|
RewNum[1] = int.Parse(segments[7]);
|
|
RewNum[2] = int.Parse(segments[9]);
|
|
RewNum[3] = int.Parse(segments[11]);
|
|
RewNum[4] = int.Parse(segments[13]);
|
|
RewNum[5] = int.Parse(segments[15]);
|
|
ShowModeId = segments[16].Trim();
|
|
IconPath[0] = segments[17].Trim();
|
|
IconPath[1] = segments[18].Trim();
|
|
IconPath[2] = segments[19].Trim();
|
|
PrivateBossFreeTimes = int.Parse(segments[20]);
|
|
VipDesc[0] = segments[21].Trim();
|
|
VipDesc[1] = segments[22].Trim();
|
|
VipDesc[2] = segments[23].Trim();
|
|
VipDesc[3] = segments[24].Trim();
|
|
VipDesc[4] = segments[25].Trim();
|
|
VipDesc[5] = segments[26].Trim();
|
|
VipDesc[6] = segments[27].Trim();
|
|
VipDesc[7] = segments[28].Trim();
|
|
VipDesc[8] = segments[29].Trim();
|
|
VipDesc[9] = segments[30].Trim();
|
|
VipDesc[10] = segments[31].Trim();
|
|
VipDesc[11] = segments[32].Trim();
|
|
VipDesc[12] = segments[33].Trim();
|
|
VipDesc[13] = segments[34].Trim();
|
|
VipDesc[14] = segments[35].Trim();
|
|
VipDesc[15] = segments[36].Trim();
|
|
VipDesc[16] = segments[37].Trim();
|
|
VipDesc[17] = segments[38].Trim();
|
|
VipDesc[18] = segments[39].Trim();
|
|
VipDesc[19] = segments[40].Trim();
|
|
|
|
}
|
|
|
|
public int VipLevel { get; private set; }
|
|
|
|
public string Tips { get; private set; }
|
|
|
|
public int NeedPay { get; private set; }
|
|
|
|
public readonly int[] RewItem = new int[6];
|
|
public int getRewItemCount() { return RewItem.Length; }
|
|
public int GetRewItembyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < RewItem.Length)
|
|
return RewItem[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public readonly int[] RewNum = new int[6];
|
|
public int getRewNumCount() { return RewNum.Length; }
|
|
public int GetRewNumbyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < RewNum.Length)
|
|
return RewNum[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public string ShowModeId { get; private set; }
|
|
|
|
public readonly string[] IconPath = new string[3];
|
|
public int getIconPathCount() { return IconPath.Length; }
|
|
public string GetIconPathbyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < IconPath.Length)
|
|
return IconPath[idx];
|
|
return default(string);
|
|
}
|
|
|
|
public int PrivateBossFreeTimes { get; private set; }
|
|
|
|
public readonly string[] VipDesc = new string[20];
|
|
public int getVipDescCount() { return VipDesc.Length; }
|
|
public string GetVipDescbyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < VipDesc.Length)
|
|
return VipDesc[idx];
|
|
return default(string);
|
|
}
|
|
|
|
|
|
}
|
|
} |