游戏王残局简化版

Artifact [5c94c46381]
Login

Artifact [5c94c46381]

Artifact 5c94c46381b145c62cfa7c66e108d2b849448574eed9320899e0aeaa864d59bc:


local 字集库 = require("u8_to_a")
local 档库 = require("lsqlite3")
local 文库 = require(字集库.u8_to_a("算机_程语_月_基类_文"))
local 对库 = require(字集库.u8_to_a("算机_程语_月_基类_表_对"))
local d = {}
local 卡档
--~ 卡编
function d.取卡对(o1)
  local k1_0, k2_0
  --~ 卡文对
  k1_0 = d.取卡文(o1)
  --~ 卡数据对
  k2_0 = d.取卡数据(o1)
  return 对库.连两对(k1_0, k2_0)
  end
--~ 卡编
function d.取卡文(o1)
  for o1_4 in 卡档:nrows(文库.连("select * from texts where id = ", o1)) do
    return o1_4
    end
  end
--~ 卡编
function d.取卡数据(o1)
  for o1_4 in 卡档:nrows(文库.连("select * from datas where id = ", o1)) do
    return o1_4
    end
  end
--~ 卡档路
function d.启卡档(o1)
  卡档 = 档库.open(o1)
  end
return d