JJBB/Assets/Project/Script/GameTables/Table_Recharge.cs

88 lines
2.1 KiB
C#
Raw Normal View History

2024-08-23 15:49:34 +08:00
//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_Recharge{
public const string TAB_FILE_DATA = "Recharge";
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_Recharge()
{
}
public Tab_Recharge(string line)
{
var segments = line.Split('\t');
Id = int.Parse(segments[0]);
Type = int.Parse(segments[2]);
ICON = segments[3].Trim();
GoodName = segments[4].Trim();
MoneyNum = int.Parse(segments[5]);
RmbNum = int.Parse(segments[6]);
FirstAward = int.Parse(segments[7]);
Recommend = int.Parse(segments[8]);
OtherAward = int.Parse(segments[9]);
DailyPrize = int.Parse(segments[10]);
DaysCount = int.Parse(segments[11]);
FestivalAward = int.Parse(segments[12]);
IAPProductID = segments[13].Trim();
IfShow = int.Parse(segments[14]);
}
public int Id { get; private set; }
public int Type { get; private set; }
public string ICON { get; private set; }
public string GoodName { get; private set; }
public int MoneyNum { get; private set; }
public int RmbNum { get; private set; }
public int FirstAward { get; private set; }
public int Recommend { get; private set; }
public int OtherAward { get; private set; }
public int DailyPrize { get; private set; }
public int DaysCount { get; private set; }
public int FestivalAward { get; private set; }
public string IAPProductID { get; private set; }
public int IfShow { get; private set; }
}
}