88 lines
2.2 KiB
C#
88 lines
2.2 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_SnatchTreasure{
|
|
|
|
public const string TAB_FILE_DATA = "SnatchTreasure";
|
|
private const int _varCount = 14;
|
|
|
|
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_SnatchTreasure()
|
|
{
|
|
}
|
|
|
|
public Tab_SnatchTreasure(string line)
|
|
{
|
|
var segments = line.Split('\t');
|
|
Id = int.Parse(segments[0]);
|
|
Time = int.Parse(segments[2]);
|
|
ItemId = int.Parse(segments[3]);
|
|
ItemNum = int.Parse(segments[4]);
|
|
ItemType = int.Parse(segments[5]);
|
|
ClassifyType = int.Parse(segments[6]);
|
|
ClassifyName = segments[7].Trim();
|
|
TotalBetMaxNum = int.Parse(segments[8]);
|
|
SelfBetMaxNum = int.Parse(segments[9]);
|
|
BetMoneyType = int.Parse(segments[10]);
|
|
MoneyNumPerBet = int.Parse(segments[11]);
|
|
ShopMoneyType = int.Parse(segments[12]);
|
|
ShopMoenyNum = int.Parse(segments[13]);
|
|
MaxGropOpenPerDay = int.Parse(segments[14]);
|
|
|
|
}
|
|
|
|
public int Id { get; private set; }
|
|
|
|
public int Time { get; private set; }
|
|
|
|
public int ItemId { get; private set; }
|
|
|
|
public int ItemNum { get; private set; }
|
|
|
|
public int ItemType { get; private set; }
|
|
|
|
public int ClassifyType { get; private set; }
|
|
|
|
public string ClassifyName { get; private set; }
|
|
|
|
public int TotalBetMaxNum { get; private set; }
|
|
|
|
public int SelfBetMaxNum { get; private set; }
|
|
|
|
public int BetMoneyType { get; private set; }
|
|
|
|
public int MoneyNumPerBet { get; private set; }
|
|
|
|
public int ShopMoneyType { get; private set; }
|
|
|
|
public int ShopMoenyNum { get; private set; }
|
|
|
|
public int MaxGropOpenPerDay { get; private set; }
|
|
|
|
|
|
}
|
|
} |