79 lines
1.8 KiB
C#
79 lines
1.8 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_YuanBaoShop{
|
|
|
|
public const string TAB_FILE_DATA = "YuanBaoShop";
|
|
private const int _varCount = 11;
|
|
|
|
public int GetId()
|
|
{
|
|
return Id;
|
|
}
|
|
|
|
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_YuanBaoShop()
|
|
{
|
|
}
|
|
|
|
public Tab_YuanBaoShop(string line)
|
|
{
|
|
var segments = line.Split('\t');
|
|
Id = int.Parse(segments[0]);
|
|
MoneyType = int.Parse(segments[2]);
|
|
TabIndex = int.Parse(segments[3]);
|
|
ItemID = int.Parse(segments[4]);
|
|
Num = int.Parse(segments[5]);
|
|
PriceWeek = int.Parse(segments[6]);
|
|
PriceForever = int.Parse(segments[7]);
|
|
ShowPriority = int.Parse(segments[8]);
|
|
SellTimeStart = int.Parse(segments[9]);
|
|
SellTimeEnd = int.Parse(segments[10]);
|
|
LimitID = int.Parse(segments[11]);
|
|
|
|
}
|
|
|
|
public int Id { get; private set; }
|
|
|
|
public int MoneyType { get; private set; }
|
|
|
|
public int TabIndex { get; private set; }
|
|
|
|
public int ItemID { get; private set; }
|
|
|
|
public int Num { get; private set; }
|
|
|
|
public int PriceWeek { get; private set; }
|
|
|
|
public int PriceForever { get; private set; }
|
|
|
|
public int ShowPriority { get; private set; }
|
|
|
|
public int SellTimeStart { get; private set; }
|
|
|
|
public int SellTimeEnd { get; private set; }
|
|
|
|
public int LimitID { get; private set; }
|
|
|
|
|
|
}
|
|
} |