//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_MarryRingSkillBase{

    public const string TAB_FILE_DATA = "MarryRingSkillBase";
	private const int _varCount = 7;
	
	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_MarryRingSkillBase()
	{
	}
	
	public Tab_MarryRingSkillBase(string line)
	{
		var segments = line.Split('\t');
          ID = int.Parse(segments[0]);
          AttrId[0] = int.Parse(segments[2]);
AttrId[1] = int.Parse(segments[4]);
AttrId[2] = int.Parse(segments[6]);
          AttrValue[0] = int.Parse(segments[3]);
AttrValue[1] = int.Parse(segments[5]);
AttrValue[2] = int.Parse(segments[7]);

	}
  
    public int ID { get; private set; }
  
	public readonly int[] AttrId = new int[3];
	public int getAttrIdCount() { return AttrId.Length; } 
	public int GetAttrIdbyIndex(int idx)
    {
		if(idx >= 0 && idx < AttrId.Length)
			return AttrId[idx];
		return default(int);
    }
  
	public readonly int[] AttrValue = new int[3];
	public int getAttrValueCount() { return AttrValue.Length; } 
	public int GetAttrValuebyIndex(int idx)
    {
		if(idx >= 0 && idx < AttrValue.Length)
			return AttrValue[idx];
		return default(int);
    }
  

    }
}