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

    public const string TAB_FILE_DATA = "ActivityMiser";
	private const int _varCount = 43;
	
	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_ActivityMiser()
	{
	}
	
	public Tab_ActivityMiser(string line)
	{
		var segments = line.Split('\t');
          Id = int.Parse(segments[0]);
          ActivityType = int.Parse(segments[2]);
          NpcId = int.Parse(segments[3]);
          X[0] = float.Parse(segments[4]);
X[1] = float.Parse(segments[6]);
X[2] = float.Parse(segments[8]);
X[3] = float.Parse(segments[10]);
X[4] = float.Parse(segments[12]);
X[5] = float.Parse(segments[14]);
X[6] = float.Parse(segments[16]);
X[7] = float.Parse(segments[18]);
X[8] = float.Parse(segments[20]);
X[9] = float.Parse(segments[22]);
X[10] = float.Parse(segments[24]);
X[11] = float.Parse(segments[26]);
X[12] = float.Parse(segments[28]);
X[13] = float.Parse(segments[30]);
X[14] = float.Parse(segments[32]);
X[15] = float.Parse(segments[34]);
X[16] = float.Parse(segments[36]);
X[17] = float.Parse(segments[38]);
X[18] = float.Parse(segments[40]);
X[19] = float.Parse(segments[42]);
          Y[0] = float.Parse(segments[5]);
Y[1] = float.Parse(segments[7]);
Y[2] = float.Parse(segments[9]);
Y[3] = float.Parse(segments[11]);
Y[4] = float.Parse(segments[13]);
Y[5] = float.Parse(segments[15]);
Y[6] = float.Parse(segments[17]);
Y[7] = float.Parse(segments[19]);
Y[8] = float.Parse(segments[21]);
Y[9] = float.Parse(segments[23]);
Y[10] = float.Parse(segments[25]);
Y[11] = float.Parse(segments[27]);
Y[12] = float.Parse(segments[29]);
Y[13] = float.Parse(segments[31]);
Y[14] = float.Parse(segments[33]);
Y[15] = float.Parse(segments[35]);
Y[16] = float.Parse(segments[37]);
Y[17] = float.Parse(segments[39]);
Y[18] = float.Parse(segments[41]);
Y[19] = float.Parse(segments[43]);

	}
  
    public int Id { get; private set; }
  
    public int ActivityType { get; private set; }
  
    public int NpcId { get; private set; }
  
	public readonly float[] X = new float[20];
	public int getXCount() { return X.Length; } 
	public float GetXbyIndex(int idx)
    {
		if(idx >= 0 && idx < X.Length)
			return X[idx];
		return default(float);
    }
  
	public readonly float[] Y = new float[20];
	public int getYCount() { return Y.Length; } 
	public float GetYbyIndex(int idx)
    {
		if(idx >= 0 && idx < Y.Length)
			return Y[idx];
		return default(float);
    }
  

    }
}