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

100 lines
2.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_FellowBase{
public const string TAB_FILE_DATA = "FellowBase";
private const int _varCount = 18;
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_FellowBase()
{
}
public Tab_FellowBase(string line)
{
var segments = line.Split('\t');
Id = int.Parse(segments[0]);
Name = segments[2].Trim();
Icon = segments[3].Trim();
ModelId = int.Parse(segments[4]);
Type = int.Parse(segments[5]);
AttackType = int.Parse(segments[6]);
PropType = int.Parse(segments[7]);
MaxLife = int.Parse(segments[8]);
CarryLevel = int.Parse(segments[9]);
InitSkill = int.Parse(segments[10]);
Lowatitude = segments[11].Trim();
Maxatitude = segments[12].Trim();
LowGrow = segments[13].Trim();
MaxGrow = segments[14].Trim();
GetMethon = segments[15].Trim();
Quility = int.Parse(segments[16]);
Growth = float.Parse(segments[17]);
GrowQuility = int.Parse(segments[18]);
}
public int Id { get; private set; }
public string Name { get; private set; }
public string Icon { get; private set; }
public int ModelId { get; private set; }
public int Type { get; private set; }
public int AttackType { get; private set; }
public int PropType { get; private set; }
public int MaxLife { get; private set; }
public int CarryLevel { get; private set; }
public int InitSkill { get; private set; }
public string Lowatitude { get; private set; }
public string Maxatitude { get; private set; }
public string LowGrow { get; private set; }
public string MaxGrow { get; private set; }
public string GetMethon { get; private set; }
public int Quility { get; private set; }
public float Growth { get; private set; }
public int GrowQuility { get; private set; }
}
}