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

70 lines
1.6 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_CrossSerEscortConfig{
public const string TAB_FILE_DATA = "CrossSerEscortConfig";
private const int _varCount = 8;
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_CrossSerEscortConfig()
{
}
public Tab_CrossSerEscortConfig(string line)
{
var segments = line.Split('\t');
Id = int.Parse(segments[0]);
Quality = int.Parse(segments[2]);
MoneyType = int.Parse(segments[3]);
Price = int.Parse(segments[4]);
NPCID = int.Parse(segments[5]);
SignPostPath = int.Parse(segments[6]);
MissionID = int.Parse(segments[7]);
NPCNameColor = segments[8].Trim();
}
public int Id { get; private set; }
public int Quality { get; private set; }
public int MoneyType { get; private set; }
public int Price { get; private set; }
public int NPCID { get; private set; }
public int SignPostPath { get; private set; }
public int MissionID { get; private set; }
public string NPCNameColor { get; private set; }
}
}