Example #1
0
 public T GetColumn <T>(int index)
 {
     if (index < 0 || index >= mDatas.Count)
     {
         // !< WARN:不能使用LogError()否则程序直接终止
         throw new Exception("[load config:" + mFile.FileName + "] error, index \'" + index + "\' out of range! idx=" + index);
     }
     return(MLPrefabUtil.ConvertValue <T>(mDatas[index]));
 }
Example #2
0
        public T GetColumn <T>(string column)
        {
            int index = mFile.GetTitleIdx(column);

            if (index < 0 || index >= mDatas.Count)
            {
                // !< WARN:不能使用LogError()否则程序直接终止
                throw new Exception("[load config:" + mFile.FileName + "] error, column \'" + column + "\' doesn't exist! idx=" + index);
            }
            return(MLPrefabUtil.ConvertValue <T>(mDatas[index]));
        }