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

    public const string TAB_FILE_DATA = "EffectPoint";
	private const int _varCount = 9;
	
	public int GetId()
	{
		return ModelTypeId;
	}
	
	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_EffectPoint()
	{
	}
	
	public Tab_EffectPoint(string line)
	{
		var segments = line.Split('\t');
          ModelTypeId = int.Parse(segments[0]);
          CenterPoint = segments[2].Trim();
          HeadPoint = segments[3].Trim();
          LHandPoint = segments[4].Trim();
          RHandPoint = segments[5].Trim();
          LFootPoint = segments[6].Trim();
          RFootPoint = segments[7].Trim();
          WeaponL = segments[8].Trim();
          WeaponR = segments[9].Trim();

	}
  
    public int ModelTypeId { get; private set; }
  
    public string CenterPoint { get; private set; }
  
    public string HeadPoint { get; private set; }
  
    public string LHandPoint { get; private set; }
  
    public string RHandPoint { get; private set; }
  
    public string LFootPoint { get; private set; }
  
    public string RFootPoint { get; private set; }
  
    public string WeaponL { get; private set; }
  
    public string WeaponR { get; private set; }
  

    }
}