169 lines
5.3 KiB
C#
169 lines
5.3 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_NewCopyBase{
|
|
|
|
public const string TAB_FILE_DATA = "NewCopyBase";
|
|
private const int _varCount = 31;
|
|
|
|
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_NewCopyBase()
|
|
{
|
|
}
|
|
|
|
public Tab_NewCopyBase(string line)
|
|
{
|
|
var segments = line.Split('\t');
|
|
Id = int.Parse(segments[0]);
|
|
Icon = segments[2].Trim();
|
|
Type = int.Parse(segments[3]);
|
|
UnLockLevel = int.Parse(segments[4]);
|
|
NormalSweepButton = segments[5].Trim();
|
|
NormalSweepCondition[0] = int.Parse(segments[6]);
|
|
NormalSweepCondition[1] = int.Parse(segments[8]);
|
|
NormalSweepPram[0] = int.Parse(segments[7]);
|
|
NormalSweepPram[1] = int.Parse(segments[9]);
|
|
NormalSweepConsumeType = int.Parse(segments[10]);
|
|
NormalSweepConsumeSubType = int.Parse(segments[11]);
|
|
NormalSweepConsumeNum = int.Parse(segments[12]);
|
|
AdvancedSweepButton = segments[13].Trim();
|
|
AdvancedSweepCondition[0] = int.Parse(segments[14]);
|
|
AdvancedSweepCondition[1] = int.Parse(segments[16]);
|
|
AdvancedSweepPram[0] = int.Parse(segments[15]);
|
|
AdvancedSweepPram[1] = int.Parse(segments[17]);
|
|
AdvancedSweepConsumeType = int.Parse(segments[18]);
|
|
AdvancedSweepConsumeSubType = int.Parse(segments[19]);
|
|
AdvanceSweepConsumeNum = int.Parse(segments[20]);
|
|
FastSweepButton = segments[21].Trim();
|
|
FastSweepCondition[0] = int.Parse(segments[22]);
|
|
FastSweepCondition[1] = int.Parse(segments[24]);
|
|
FastSweepPram[0] = int.Parse(segments[23]);
|
|
FastSweepPram[1] = int.Parse(segments[25]);
|
|
FastSweepConsumeType = int.Parse(segments[26]);
|
|
FastSweepConsumeSubType = int.Parse(segments[27]);
|
|
FastSweepConsumeNum = int.Parse(segments[28]);
|
|
FirstPassRewardId = int.Parse(segments[29]);
|
|
NormalPassRewardId = int.Parse(segments[30]);
|
|
TeamTargetId = int.Parse(segments[31]);
|
|
|
|
}
|
|
|
|
public int Id { get; private set; }
|
|
|
|
public string Icon { get; private set; }
|
|
|
|
public int Type { get; private set; }
|
|
|
|
public int UnLockLevel { get; private set; }
|
|
|
|
public string NormalSweepButton { get; private set; }
|
|
|
|
public readonly int[] NormalSweepCondition = new int[2];
|
|
public int getNormalSweepConditionCount() { return NormalSweepCondition.Length; }
|
|
public int GetNormalSweepConditionbyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < NormalSweepCondition.Length)
|
|
return NormalSweepCondition[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public readonly int[] NormalSweepPram = new int[2];
|
|
public int getNormalSweepPramCount() { return NormalSweepPram.Length; }
|
|
public int GetNormalSweepPrambyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < NormalSweepPram.Length)
|
|
return NormalSweepPram[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public int NormalSweepConsumeType { get; private set; }
|
|
|
|
public int NormalSweepConsumeSubType { get; private set; }
|
|
|
|
public int NormalSweepConsumeNum { get; private set; }
|
|
|
|
public string AdvancedSweepButton { get; private set; }
|
|
|
|
public readonly int[] AdvancedSweepCondition = new int[2];
|
|
public int getAdvancedSweepConditionCount() { return AdvancedSweepCondition.Length; }
|
|
public int GetAdvancedSweepConditionbyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < AdvancedSweepCondition.Length)
|
|
return AdvancedSweepCondition[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public readonly int[] AdvancedSweepPram = new int[2];
|
|
public int getAdvancedSweepPramCount() { return AdvancedSweepPram.Length; }
|
|
public int GetAdvancedSweepPrambyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < AdvancedSweepPram.Length)
|
|
return AdvancedSweepPram[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public int AdvancedSweepConsumeType { get; private set; }
|
|
|
|
public int AdvancedSweepConsumeSubType { get; private set; }
|
|
|
|
public int AdvanceSweepConsumeNum { get; private set; }
|
|
|
|
public string FastSweepButton { get; private set; }
|
|
|
|
public readonly int[] FastSweepCondition = new int[2];
|
|
public int getFastSweepConditionCount() { return FastSweepCondition.Length; }
|
|
public int GetFastSweepConditionbyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < FastSweepCondition.Length)
|
|
return FastSweepCondition[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public readonly int[] FastSweepPram = new int[2];
|
|
public int getFastSweepPramCount() { return FastSweepPram.Length; }
|
|
public int GetFastSweepPrambyIndex(int idx)
|
|
{
|
|
if(idx >= 0 && idx < FastSweepPram.Length)
|
|
return FastSweepPram[idx];
|
|
return default(int);
|
|
}
|
|
|
|
public int FastSweepConsumeType { get; private set; }
|
|
|
|
public int FastSweepConsumeSubType { get; private set; }
|
|
|
|
public int FastSweepConsumeNum { get; private set; }
|
|
|
|
public int FirstPassRewardId { get; private set; }
|
|
|
|
public int NormalPassRewardId { get; private set; }
|
|
|
|
public int TeamTargetId { get; private set; }
|
|
|
|
|
|
}
|
|
} |