2014-09-26 16:03:38 +03:00
|
|
|
-- Buildat: client/api.lua
|
|
|
|
-- http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
-- Copyright 2014 Perttu Ahola <celeron55@gmail.com>
|
|
|
|
local log = buildat.Logger("__client/api")
|
|
|
|
|
2014-09-27 07:44:54 +03:00
|
|
|
buildat.connect_server = __buildat_connect_server
|
|
|
|
buildat.extension_path = __buildat_extension_path
|
2014-09-26 16:03:38 +03:00
|
|
|
|
2014-09-27 09:54:53 +03:00
|
|
|
buildat.safe.disconnect = __buildat_disconnect
|
|
|
|
|
2014-10-05 19:49:12 +03:00
|
|
|
function buildat.safe.set_simple_voxel_model(safe_node, w, h, d, data)
|
|
|
|
if not getmetatable(safe_node) or
|
|
|
|
getmetatable(safe_node).type_name ~= "Node" then
|
|
|
|
error("Node is not a sandboxed Node instance")
|
|
|
|
end
|
|
|
|
node = getmetatable(safe_node).unsafe
|
|
|
|
__buildat_set_simple_voxel_model(node, w, h, d, data)
|
|
|
|
end
|
|
|
|
|
2014-09-26 16:03:38 +03:00
|
|
|
-- vim: set noet ts=4 sw=4:
|