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

    public const string TAB_FILE_DATA = "ItemGetPath";
	private const int _varCount = 13;
	
	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_ItemGetPath()
	{
	}
	
	public Tab_ItemGetPath(string line)
	{
		var segments = line.Split('\t');
          Id = int.Parse(segments[0]);
          ItemPath[0] = segments[2].Trim();
ItemPath[1] = segments[3].Trim();
ItemPath[2] = segments[4].Trim();
ItemPath[3] = segments[5].Trim();
ItemPath[4] = segments[6].Trim();
ItemPath[5] = segments[7].Trim();
ItemPath[6] = segments[8].Trim();
ItemPath[7] = segments[9].Trim();
ItemPath[8] = segments[10].Trim();
ItemPath[9] = segments[11].Trim();
ItemPath[10] = segments[12].Trim();
ItemPath[11] = segments[13].Trim();

	}
  
    public int Id { get; private set; }
  
	public readonly string[] ItemPath = new string[12];
	public int getItemPathCount() { return ItemPath.Length; } 
	public string GetItemPathbyIndex(int idx)
    {
		if(idx >= 0 && idx < ItemPath.Length)
			return ItemPath[idx];
		return default(string);
    }
  

    }
}