游戏王残局简化版

Annotation For 残局文料/收集YGOPro常量并据此生成lua文件.lua
Login

Annotation For 残局文料/收集YGOPro常量并据此生成lua文件.lua

Origin for each line in 残局文料/收集YGOPro常量并据此生成lua文件.lua from check-in 478a27fedc:

db3dcd2fc5 2024-01-31    1: package.path = [[.\lua_lib\?.lua;]] .. package.path
db3dcd2fc5 2024-01-31    2: package.cpath = [[.\lua_lib\?.dll;]] .. package.cpath
ebd6d74a8f 2024-01-31    3: local 字集码互转库 = require("u8_to_a")
ebd6d74a8f 2024-01-31    4: local 读件库 = 常用库.导入库_通用大字集态_八位态("算机_基统_窗群_件系_小件_读")
ebd6d74a8f 2024-01-31    5: local 写件库 = 常用库.导入库_通用大字集态_八位态("算机_基统_窗群_件系_小件_写")
ebd6d74a8f 2024-01-31    6: local 删注库 = 常用库.导入库_通用大字集态_八位态("程语_月_删注_不虑字串")
ebd6d74a8f 2024-01-31    7: local 删字库 = 常用库.导入库_通用大字集态_八位态("程语_月_基类_文_删字")
ebd6d74a8f 2024-01-31    8: local 文转排库 = 常用库.导入库_通用大字集态_八位态("程语_月_基类_文_筛文_文转排")
ebd6d74a8f 2024-01-31    9: local 遍历排库 = 常用库.导入库_通用大字集态_八位态("程语_月_基类_排_遍历")
ebd6d74a8f 2024-01-31   10: local 前后缀库 = 常用库.导入库_通用大字集态_八位态("程语_月_基类_文_前后缀")
ebd6d74a8f 2024-01-31   11: local 判文库 = 常用库.导入库_通用大字集态_八位态("程语_月_基类_文_筛文_判文")
ebd6d74a8f 2024-01-31   12: local d_3 = {}
478a27fedc 2024-02-02   13: function d_3.收集YGOPro常量并据此生成lua文件(o1)
478a27fedc 2024-02-02   14:   d_3.生成普通常量文件(o1)
478a27fedc 2024-02-02   15:   d_3.生成字段名文件(o1)
ebd6d74a8f 2024-01-31   16:   end
478a27fedc 2024-02-02   17: function d_3.生成普通常量文件(o1)
ebd6d74a8f 2024-01-31   18:   local k1
ebd6d74a8f 2024-01-31   19:   local k1_11
ebd6d74a8f 2024-01-31   20:   k1 = 读件库.读件(o1 .. "/script/constant.lua")
ebd6d74a8f 2024-01-31   21:   k1 = 删注库.单行注(k1)
ebd6d74a8f 2024-01-31   22:   k1 = 删字库.空格与制表符(k1)
ebd6d74a8f 2024-01-31   23:   k1_11 = 文转排库.单行_非空态_无换行符态(k1)
478a27fedc 2024-02-02   24:   d_3.入排而加表限并写件(k1_11, 字集码互转库.u8_to_a("普通常量.lua"))
ebd6d74a8f 2024-01-31   25:   end
ebd6d74a8f 2024-01-31   26: function d_3.入排而加表限并写件(o1_11, o1)
ebd6d74a8f 2024-01-31   27:   local k1
ebd6d74a8f 2024-01-31   28:   o1_11 = 遍历排库.遍历_返排态(o1_11, string.gsub, "[^=]+", "[\"%1\"]")
ebd6d74a8f 2024-01-31   29:   o1_11 = 遍历排库.遍历_返排态(o1_11, 前后缀库.加前缀_基态, [[k1_11.]])
ebd6d74a8f 2024-01-31   30:   table.insert(o1_11, 1, "local k1_11 = {}")
ebd6d74a8f 2024-01-31   31:   table.insert(o1_11, "return k1_11")
ebd6d74a8f 2024-01-31   32:   k1 = table.concat(o1_11, "\n")
ebd6d74a8f 2024-01-31   33:   写件库.写件(k1, o1)
ebd6d74a8f 2024-01-31   34:   end
478a27fedc 2024-02-02   35: function d_3.生成字段名文件(o1)
ebd6d74a8f 2024-01-31   36:   local k1
ebd6d74a8f 2024-01-31   37:   local k1_11
ebd6d74a8f 2024-01-31   38:   k1 = 读件库.读件(o1 .. "/strings.conf")
ebd6d74a8f 2024-01-31   39:   k1_11 = 文转排库.单行_非空态_无换行符态(k1)
ebd6d74a8f 2024-01-31   40:   k1_11 = 遍历排库.遍历_返排态(k1_11, string.startswith, "!setname")
ebd6d74a8f 2024-01-31   41:   k1_11 = 遍历排库.遍历_返排态(k1_11, 前后缀库.删前缀_基态, "!setname ")
ebd6d74a8f 2024-01-31   42:   k1_11 = 遍历排库.遍历_返排态(k1_11, 判文库.返选文, "[^\t]+")
ebd6d74a8f 2024-01-31   43:   k1_11 = 遍历排库.遍历_返排态(k1_11, string.lstrip)
ebd6d74a8f 2024-01-31   44:   k1_11 = 遍历排库.遍历_返排态(k1_11, string.gsub, " ", "=", 1)
ebd6d74a8f 2024-01-31   45:   k1_11 = 遍历排库.遍历_返排态(k1_11, string.gsub, "|.+", "")
ebd6d74a8f 2024-01-31   46:   d_3.入排而加表限并写件(k1_11, 字集码互转库.u8_to_a("字段名.lua"))
ebd6d74a8f 2024-01-31   47:   end
2cb6fdc753 2024-01-31   48: local k1 = 字集码互转库.u8_to_a([[D:\install\YGOPro]])
2cb6fdc753 2024-01-31   49: d_3.收集YGOPro常量并据此生成lua文件(k1)