游戏王残局简化版

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

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

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

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