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

70 lines
1.6 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_VipIdoitInCharge{
public const string TAB_FILE_DATA = "VipIdoitInCharge";
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_VipIdoitInCharge()
{
}
public Tab_VipIdoitInCharge(string line)
{
var segments = line.Split('\t');
ID = int.Parse(segments[0]);
Name = segments[2].Trim();
ActiveStrDesc = int.Parse(segments[3]);
ActivedStrDesc = int.Parse(segments[4]);
Param = int.Parse(segments[5]);
ActiveDescId = int.Parse(segments[6]);
AuotoActiveTime = int.Parse(segments[7]);
ChrModelIdStr = segments[8].Trim();
}
public int ID { get; private set; }
public string Name { get; private set; }
public int ActiveStrDesc { get; private set; }
public int ActivedStrDesc { get; private set; }
public int Param { get; private set; }
public int ActiveDescId { get; private set; }
public int AuotoActiveTime { get; private set; }
public string ChrModelIdStr { get; private set; }
}
}