127 lines
3.6 KiB
C#
127 lines
3.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_CrossSerEscortAward{
|
||
|
|
||
|
public const string TAB_FILE_DATA = "CrossSerEscortAward";
|
||
|
private const int _varCount = 25;
|
||
|
|
||
|
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_CrossSerEscortAward()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public Tab_CrossSerEscortAward(string line)
|
||
|
{
|
||
|
var segments = line.Split('\t');
|
||
|
Id = int.Parse(segments[0]);
|
||
|
SuccessExp[0] = int.Parse(segments[2]);
|
||
|
SuccessExp[1] = int.Parse(segments[8]);
|
||
|
SuccessExp[2] = int.Parse(segments[14]);
|
||
|
SuccessExp[3] = int.Parse(segments[20]);
|
||
|
SuccessReputation[0] = int.Parse(segments[3]);
|
||
|
SuccessReputation[1] = int.Parse(segments[9]);
|
||
|
SuccessReputation[2] = int.Parse(segments[15]);
|
||
|
SuccessReputation[3] = int.Parse(segments[21]);
|
||
|
FailExp[0] = int.Parse(segments[4]);
|
||
|
FailExp[1] = int.Parse(segments[10]);
|
||
|
FailExp[2] = int.Parse(segments[16]);
|
||
|
FailExp[3] = int.Parse(segments[22]);
|
||
|
FailReputation[0] = int.Parse(segments[5]);
|
||
|
FailReputation[1] = int.Parse(segments[11]);
|
||
|
FailReputation[2] = int.Parse(segments[17]);
|
||
|
FailReputation[3] = int.Parse(segments[23]);
|
||
|
DestroyExp[0] = int.Parse(segments[6]);
|
||
|
DestroyExp[1] = int.Parse(segments[12]);
|
||
|
DestroyExp[2] = int.Parse(segments[18]);
|
||
|
DestroyExp[3] = int.Parse(segments[24]);
|
||
|
DestroyReputation[0] = int.Parse(segments[7]);
|
||
|
DestroyReputation[1] = int.Parse(segments[13]);
|
||
|
DestroyReputation[2] = int.Parse(segments[19]);
|
||
|
DestroyReputation[3] = int.Parse(segments[25]);
|
||
|
|
||
|
}
|
||
|
|
||
|
public int Id { get; private set; }
|
||
|
|
||
|
public readonly int[] SuccessExp = new int[4];
|
||
|
public int getSuccessExpCount() { return SuccessExp.Length; }
|
||
|
public int GetSuccessExpbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < SuccessExp.Length)
|
||
|
return SuccessExp[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly int[] SuccessReputation = new int[4];
|
||
|
public int getSuccessReputationCount() { return SuccessReputation.Length; }
|
||
|
public int GetSuccessReputationbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < SuccessReputation.Length)
|
||
|
return SuccessReputation[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly int[] FailExp = new int[4];
|
||
|
public int getFailExpCount() { return FailExp.Length; }
|
||
|
public int GetFailExpbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < FailExp.Length)
|
||
|
return FailExp[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly int[] FailReputation = new int[4];
|
||
|
public int getFailReputationCount() { return FailReputation.Length; }
|
||
|
public int GetFailReputationbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < FailReputation.Length)
|
||
|
return FailReputation[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly int[] DestroyExp = new int[4];
|
||
|
public int getDestroyExpCount() { return DestroyExp.Length; }
|
||
|
public int GetDestroyExpbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < DestroyExp.Length)
|
||
|
return DestroyExp[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
public readonly int[] DestroyReputation = new int[4];
|
||
|
public int getDestroyReputationCount() { return DestroyReputation.Length; }
|
||
|
public int GetDestroyReputationbyIndex(int idx)
|
||
|
{
|
||
|
if(idx >= 0 && idx < DestroyReputation.Length)
|
||
|
return DestroyReputation[idx];
|
||
|
return default(int);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|