【文件属性】:
文件名称:Lua-Cell:工厂的工厂
文件大小:5.97MB
文件格式:ZIP
更新时间:2021-03-27 07:17:46
C
卢阿赛尔
工厂的工厂
cell_types =
{
CELL_INT = 1 ,
CELL_DOUBLE = 2 ,
CELL_STRING = 3 ,
}
cell = { }
function cell . new ( type , value )
c = { type = type }
if ( type == cell_types . CELL_INT ) then c . i64 = math . floor ( tonumber ( value ) )
elseif ( type == cell_types . CELL_DOUBLE ) then c . f64 = tonumber ( value )
elseif ( type == cell_types . CELL_STRING ) then c . s64 = tostring