예제 #1
0
    protected override void HorizontalTableList(string _dir, List <CreateFileGroupLibrary> _dataList)
    {
        LuaParamLibrary tempParamLib = new LuaParamLibrary(ClassName);

        for (int j = 0; j < _dataList.Count; j++)
        {
            // 获取单行数据
            List <CreateFileInfo> tempInfo = _dataList[j].FileInfoList;
            if (tempInfo.Count == 0)
            {
                continue;
            }

            LuaParamInfo tempParamInfo = null;
            if (isShowIndex)
            {
                tempParamInfo = new LuaParamInfo(tempInfo[0].ParamValue);
            }
            else
            {
                tempParamInfo = new LuaParamInfo();
            }

            for (int i = 0; i < tempInfo.Count; i++)
            {
                tempParamInfo.AddParam(tempInfo[i].ParamName, tempInfo[i].ParamType, tempInfo[i].ParamValue);
            }

            tempParamLib.AddParamInfo(tempParamInfo);
        }

        System.IO.File.WriteAllText(_dir + "Config.lua", tempParamLib.ParamValue);
    }
예제 #2
0
 public void AddParamInfo(LuaParamInfo _paramInfo)
 {
     paramInfo.Add(_paramInfo);
 }