游戏王残局简化版

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

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

Origin for each line in 残局文料/lua_lib/游戏王_则拟器_原版_卡档.lua from check-in beb98c727c:

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