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

73 lines
1.7 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_PKDetailInfo{
public const string TAB_FILE_DATA = "PKDetailInfo";
private const int _varCount = 9;
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_PKDetailInfo()
{
}
public Tab_PKDetailInfo(string line)
{
var segments = line.Split('\t');
Id = int.Parse(segments[0]);
BluePKValueMin = int.Parse(segments[2]);
BluePKValueMax = int.Parse(segments[3]);
PurplePKValueMin = int.Parse(segments[4]);
PurplePKValueMax = int.Parse(segments[5]);
RedPKValueMin = int.Parse(segments[6]);
PosX = float.Parse(segments[7]);
PosZ = float.Parse(segments[8]);
DataID = int.Parse(segments[9]);
}
public int Id { get; private set; }
public int BluePKValueMin { get; private set; }
public int BluePKValueMax { get; private set; }
public int PurplePKValueMin { get; private set; }
public int PurplePKValueMax { get; private set; }
public int RedPKValueMin { get; private set; }
public float PosX { get; private set; }
public float PosZ { get; private set; }
public int DataID { get; private set; }
}
}