128 lines
3.4 KiB
C#
128 lines
3.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_ActivityProfPassLayerOther{
|
||
|
|
||
|
public const string TAB_FILE_DATA = "ActivityProfPassLayerOther";
|
||
|
private const int _varCount = 26;
|
||
|
|
||
|
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_ActivityProfPassLayerOther()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public Tab_ActivityProfPassLayerOther(string line)
|
||
|
{
|
||
|
var segments = line.Split('\t');
|
||
|
Id = int.Parse(segments[0]);
|
||
|
LevelSec[0] = int.Parse(segments[2]);
|
||
|
LevelSec[1] = int.Parse(segments[3]);
|
||
|
LevelSec[2] = int.Parse(segments[4]);
|
||
|
LevelSec[3] = int.Parse(segments[5]);
|
||
|
LevelSec[4] = int.Parse(segments[6]);
|
||
|
ComFB[0] = int.Parse(segments[7]);
|
||
|
ComFB[1] = int.Parse(segments[9]);
|
||
|
ComFB[2] = int.Parse(segments[11]);
|
||
|
ComFB[3] = int.Parse(segments[13]);
|
||
|
ComFbIcon[0] = segments[8].Trim();
|
||
|
ComFbIcon[1] = segments[10].Trim();
|
||
|
ComFbIcon[2] = segments[12].Trim();
|
||
|
ComFbIcon[3] = segments[14].Trim();
|
||
|
HeroFB[0] = int.Parse(segments[15]);
|
||
|
HeroFB[1] = int.Parse(segments[17]);
|
||
|
HeroFB[2] = int.Parse(segments[19]);
|
||
|
HeroFB[3] = int.Parse(segments[21]);
|
||
|
HeroFbIcon[0] = segments[16].Trim();
|
||
|
HeroFbIcon[1] = segments[18].Trim();
|
||
|
HeroFbIcon[2] = segments[20].Trim();
|
||
|
HeroFbIcon[3] = segments[22].Trim();
|
||
|
Factionname[0] = segments[23].Trim();
|
||
|
Factionname[1] = segments[24].Trim();
|
||
|
Factionname[2] = segments[25].Trim();
|
||
|
Factionname[3] = segments[26].Trim();
|
||
|
|
||
|
}
|
||
|
|
||
|
public int Id { get; private set; }
|
||
|
|
||
|
public readonly int[] LevelSec = new int[5];
|
||
|
public int getLevelSecCount() { return LevelSec.Length; }
|
||
|
public int GetLevelSecbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < LevelSec.Length)
|
||
|
return LevelSec[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly int[] ComFB = new int[4];
|
||
|
public int getComFBCount() { return ComFB.Length; }
|
||
|
public int GetComFBbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < ComFB.Length)
|
||
|
return ComFB[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly string[] ComFbIcon = new string[4];
|
||
|
public int getComFbIconCount() { return ComFbIcon.Length; }
|
||
|
public string GetComFbIconbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < ComFbIcon.Length)
|
||
|
return ComFbIcon[idx];
|
||
|
return default(string);
|
||
|
}
|
||
|
|
||
|
public readonly int[] HeroFB = new int[4];
|
||
|
public int getHeroFBCount() { return HeroFB.Length; }
|
||
|
public int GetHeroFBbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < HeroFB.Length)
|
||
|
return HeroFB[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly string[] HeroFbIcon = new string[4];
|
||
|
public int getHeroFbIconCount() { return HeroFbIcon.Length; }
|
||
|
public string GetHeroFbIconbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < HeroFbIcon.Length)
|
||
|
return HeroFbIcon[idx];
|
||
|
return default(string);
|
||
|
}
|
||
|
|
||
|
public readonly string[] Factionname = new string[4];
|
||
|
public int getFactionnameCount() { return Factionname.Length; }
|
||
|
public string GetFactionnamebyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < Factionname.Length)
|
||
|
return Factionname[idx];
|
||
|
return default(string);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|