游戏王残局简化版

Annotation For 残局文料/lua_lib/游戏王_则拟器_原版_卡档.lua
Login

Annotation For 残局文料/lua_lib/游戏王_则拟器_原版_卡档.lua

Lines of 残局文料/lua_lib/游戏王_则拟器_原版_卡档.lua from check-in b2254565d9 that are changed by the sequence of edits moving toward check-in 276e038dec:

                         1: local 字集库 = require("u8_to_a")
                         2: local 档库 = require("lsqlite3")
                         3: local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文"))
                         4: local 对库 = require(字集库.u8_to_a("算机_程语_月_基类_表_对"))
                         5: local d = {}
                         6: local 卡档
                         7: --~ 卡编
                         8: function d.取卡对(o1)
                         9:   local k1_0, k2_0
                        10:   --~ 卡文对
                        11:   k1_0 = d.取卡文(o1)
                        12:   --~ 卡数据对
                        13:   k2_0 = d.取卡数据(o1)
                        14:   return 对库.连两对(k1_0, k2_0)
                        15:   end
                        16: --~ 卡编
b2254565d9 2024-02-12   17: function d.取卡对(o1, o2)
                        18:   for o1_4 in 卡档:nrows(文库.连(o2, o1)) do
                        19:     return o1_4
                        20:     end
                        21:   end
                        22: do
                        23:   local k1
                        24:   --~ 模
                        25:   k1 = "select * from texts where id = "
                        26:   --~ 卡编
                        27:   function d.取卡文(o1)
b2254565d9 2024-02-12   28:     for o1_4 in 卡档:nrows(文库.连(k1, o1)) do
b2254565d9 2024-02-12   29:       return o1_4
b2254565d9 2024-02-12   30:       end
                        31:     end
                        32:   end
                        33: do
                        34:   local k1
                        35:   --~ 模
                        36:   k1 = "select * from datas where id = "
                        37:   --~ 卡编
                        38:   function d.取卡数据(o1)
b2254565d9 2024-02-12   39:     for o1_4 in 卡档:nrows(文库.连(k1, o1)) do
b2254565d9 2024-02-12   40:       return o1_4
b2254565d9 2024-02-12   41:       end
                        42:     end
                        43:   end
                        44: --~ 卡档路
                        45: function d.启卡档(o1)
                        46:   卡档 = 档库.open(o1)
                        47:   end
                        48: return d
b2254565d9 2024-02-12   49: