79 lines
1.9 KiB
C#
79 lines
1.9 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_GemLvlUpConsume{
|
|
|
|
public const string TAB_FILE_DATA = "GemLvlUpConsume";
|
|
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_GemLvlUpConsume()
|
|
{
|
|
}
|
|
|
|
public Tab_GemLvlUpConsume(string line)
|
|
{
|
|
var segments = line.Split('\t');
|
|
Id = int.Parse(segments[0]);
|
|
GemId = int.Parse(segments[2]);
|
|
NextLevel = int.Parse(segments[3]);
|
|
NextQuality = int.Parse(segments[4]);
|
|
GemMaterialCnt = int.Parse(segments[5]);
|
|
DesLevel = int.Parse(segments[6]);
|
|
ConsumeSubType = int.Parse(segments[7]);
|
|
ConsumeNum = int.Parse(segments[8]);
|
|
QualityConsumeType = int.Parse(segments[9]);
|
|
QualityConsumeSubType = int.Parse(segments[10]);
|
|
QualityConsumeNum = int.Parse(segments[11]);
|
|
|
|
}
|
|
|
|
public int Id { get; private set; }
|
|
|
|
public int GemId { get; private set; }
|
|
|
|
public int NextLevel { get; private set; }
|
|
|
|
public int NextQuality { get; private set; }
|
|
|
|
public int GemMaterialCnt { get; private set; }
|
|
|
|
public int DesLevel { get; private set; }
|
|
|
|
public int ConsumeSubType { get; private set; }
|
|
|
|
public int ConsumeNum { get; private set; }
|
|
|
|
public int QualityConsumeType { get; private set; }
|
|
|
|
public int QualityConsumeSubType { get; private set; }
|
|
|
|
public int QualityConsumeNum { get; private set; }
|
|
|
|
|
|
}
|
|
} |