Remove gemai.ref_to_table
parent
5028d044ae
commit
edae027352
9
init.lua
9
init.lua
|
@ -1,14 +1,5 @@
|
|||
gemai = {}
|
||||
|
||||
-- Convert object reference to serializable table.
|
||||
-- Extend in mods implementing mobs/etc.
|
||||
-- Returns nil if unable to convert.
|
||||
function gemai.ref_to_table(obj)
|
||||
if obj:is_player() then
|
||||
return {type = "player", id = obj:get_player_name()}
|
||||
end
|
||||
end
|
||||
|
||||
b.dofile("actions.lua")
|
||||
b.dofile("context.lua")
|
||||
|
||||
|
|
Loading…
Reference in New Issue