Files
JJBB/Assets/Project/Script/GameTables/Table_FellowApitute.cs

85 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_FellowApitute{
public const string TAB_FILE_DATA = "FellowApitute";
private const int _varCount = 13;
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_FellowApitute()
{
}
public Tab_FellowApitute(string line)
{
var segments = line.Split('\t');
Id = int.Parse(segments[0]);
Type = int.Parse(segments[2]);
PropType = int.Parse(segments[3]);
ConstituMin = int.Parse(segments[4]);
ConstituMax = int.Parse(segments[5]);
MorfibMin = int.Parse(segments[6]);
MorfibMax = int.Parse(segments[7]);
StrengthMin = int.Parse(segments[8]);
StrengthMax = int.Parse(segments[9]);
IntellengMin = int.Parse(segments[10]);
IntellengMax = int.Parse(segments[11]);
AgileMin = int.Parse(segments[12]);
AgilenMax = int.Parse(segments[13]);
}
public int Id { get; private set; }
public int Type { get; private set; }
public int PropType { get; private set; }
public int ConstituMin { get; private set; }
public int ConstituMax { get; private set; }
public int MorfibMin { get; private set; }
public int MorfibMax { get; private set; }
public int StrengthMin { get; private set; }
public int StrengthMax { get; private set; }
public int IntellengMin { get; private set; }
public int IntellengMax { get; private set; }
public int AgileMin { get; private set; }
public int AgilenMax { get; private set; }
}
}