游戏王残局简化版

游戏王_则拟器_原版_卡档.lua at [8c1e3abceb]
Login

游戏王_则拟器_原版_卡档.lua at [8c1e3abceb]

File 残局文料/lua_lib/游戏王_则拟器_原版_卡档.lua artifact a267460be6 part of check-in 8c1e3abceb


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