public CSVValue ( string head, string strValue, BASIC_TYPE type, int rowIndex, int colIndex ) : UnityEngine | ||
head | string | |
strValue | string | |
type | BASIC_TYPE | |
rowIndex | int | |
colIndex | int | |
리턴 | UnityEngine |
public CSVValue(string head,string strValue,BASIC_TYPE type,int rowIndex,int colIndex)
{
Head = head;
StrValue = strValue;
mType = type;
RowIndex = rowIndex;
ColIndex = colIndex;
// 解析
switch (mType) {
case BASIC_TYPE.INT:
IntValue = int.Parse (StrValue);
break;
case BASIC_TYPE.FLOAT:
FloatValue = float.Parse (StrValue);
break;
default:
break;
}
}