118 lines
3.4 KiB
C#
118 lines
3.4 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_FunctionPreview{
|
||
|
|
||
|
public const string TAB_FILE_DATA = "FunctionPreview";
|
||
|
private const int _varCount = 24;
|
||
|
|
||
|
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_FunctionPreview()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public Tab_FunctionPreview(string line)
|
||
|
{
|
||
|
var segments = line.Split('\t');
|
||
|
Id = int.Parse(segments[0]);
|
||
|
OpenFuncMissionId = int.Parse(segments[2]);
|
||
|
CloseFuncMissionId = int.Parse(segments[3]);
|
||
|
OpenNeedLevel = int.Parse(segments[4]);
|
||
|
CloseNeedLevel = int.Parse(segments[5]);
|
||
|
ShowCharModelId = segments[6].Trim();
|
||
|
ShowIconPath = segments[7].Trim();
|
||
|
ShowBundelPathId = int.Parse(segments[8]);
|
||
|
ShowRecSize = segments[9].Trim();
|
||
|
NameIconPath = segments[10].Trim();
|
||
|
OpenFuncDesc = segments[11].Trim();
|
||
|
PreviewModelId = segments[12].Trim();
|
||
|
PreViewIconPath = segments[13].Trim();
|
||
|
AnimationName = segments[14].Trim();
|
||
|
PreviewFuncName = segments[15].Trim();
|
||
|
PreviewFuncNameIconPath = segments[16].Trim();
|
||
|
PreviewRecSize = segments[17].Trim();
|
||
|
PreViewBundlePathId = int.Parse(segments[18]);
|
||
|
IsNeedPopActiveFunc = int.Parse(segments[19]);
|
||
|
ActiveItemId = int.Parse(segments[20]);
|
||
|
ActiveFunType = int.Parse(segments[21]);
|
||
|
ActiveFunSubType = int.Parse(segments[22]);
|
||
|
UIShowName = segments[23].Trim();
|
||
|
PopOpenFunctionModelId = segments[24].Trim();
|
||
|
|
||
|
}
|
||
|
|
||
|
public int Id { get; private set; }
|
||
|
|
||
|
public int OpenFuncMissionId { get; private set; }
|
||
|
|
||
|
public int CloseFuncMissionId { get; private set; }
|
||
|
|
||
|
public int OpenNeedLevel { get; private set; }
|
||
|
|
||
|
public int CloseNeedLevel { get; private set; }
|
||
|
|
||
|
public string ShowCharModelId { get; private set; }
|
||
|
|
||
|
public string ShowIconPath { get; private set; }
|
||
|
|
||
|
public int ShowBundelPathId { get; private set; }
|
||
|
|
||
|
public string ShowRecSize { get; private set; }
|
||
|
|
||
|
public string NameIconPath { get; private set; }
|
||
|
|
||
|
public string OpenFuncDesc { get; private set; }
|
||
|
|
||
|
public string PreviewModelId { get; private set; }
|
||
|
|
||
|
public string PreViewIconPath { get; private set; }
|
||
|
|
||
|
public string AnimationName { get; private set; }
|
||
|
|
||
|
public string PreviewFuncName { get; private set; }
|
||
|
|
||
|
public string PreviewFuncNameIconPath { get; private set; }
|
||
|
|
||
|
public string PreviewRecSize { get; private set; }
|
||
|
|
||
|
public int PreViewBundlePathId { get; private set; }
|
||
|
|
||
|
public int IsNeedPopActiveFunc { get; private set; }
|
||
|
|
||
|
public int ActiveItemId { get; private set; }
|
||
|
|
||
|
public int ActiveFunType { get; private set; }
|
||
|
|
||
|
public int ActiveFunSubType { get; private set; }
|
||
|
|
||
|
public string UIShowName { get; private set; }
|
||
|
|
||
|
public string PopOpenFunctionModelId { get; private set; }
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|