Files
JJBB/Assets/Project/Script/GameTables/Table_ChildrenLevelUp.cs
2024-08-23 15:49:34 +08:00

67 lines
1.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_ChildrenLevelUp{
public const string TAB_FILE_DATA = "ChildrenLevelUp";
private const int _varCount = 7;
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_ChildrenLevelUp()
{
}
public Tab_ChildrenLevelUp(string line)
{
var segments = line.Split('\t');
Id = int.Parse(segments[0]);
ExpNeed = int.Parse(segments[2]);
MaxExpPerDay = int.Parse(segments[3]);
ExpByClass = int.Parse(segments[4]);
SkillExpByClass = int.Parse(segments[5]);
CurStateType = int.Parse(segments[6]);
FeiShengFlag = int.Parse(segments[7]);
}
public int Id { get; private set; }
public int ExpNeed { get; private set; }
public int MaxExpPerDay { get; private set; }
public int ExpByClass { get; private set; }
public int SkillExpByClass { get; private set; }
public int CurStateType { get; private set; }
public int FeiShengFlag { get; private set; }
}
}