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

64 lines
1.4 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_EquipPropBarReplaceConsume{
public const string TAB_FILE_DATA = "EquipPropBarReplaceConsume";
private const int _varCount = 6;
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_EquipPropBarReplaceConsume()
{
}
public Tab_EquipPropBarReplaceConsume(string line)
{
var segments = line.Split('\t');
Id = int.Parse(segments[0]);
LevleID = int.Parse(segments[2]);
Quality = int.Parse(segments[3]);
Type1 = int.Parse(segments[4]);
ConsumeSubType1 = int.Parse(segments[5]);
ConsumeNum1 = int.Parse(segments[6]);
}
public int Id { get; private set; }
public int LevleID { get; private set; }
public int Quality { get; private set; }
public int Type1 { get; private set; }
public int ConsumeSubType1 { get; private set; }
public int ConsumeNum1 { get; private set; }
}
}