Added constructors to tangible.build, more work on keyword argument parsing, added LS.tailcall.

This commit is contained in:
2025-01-21 20:20:54 -05:00
parent 485caee05d
commit 69cb659d78
6 changed files with 83 additions and 18 deletions

View File

@@ -1,16 +1,24 @@
makeclass('login')
makeclass("engio")
makeclass('tree')
function login.initialize(actor, place)
dprint("login.initialize:", actor)
function tree.init(self, config)
print("In tree.init:")
pprint{self=self, config=config}
wait(1)
print("tick");
wait(1)
end
function login.init(actor, place)
dprint("login.init:", actor)
local x = math.random(1, 100)
local y = math.random(1, 100)
tangible.animate(actor, nil, {bp="tangiblecharacter", action="warpto", plane="earth", xyz={x, y, 90}})
end
end
function engio.move(actor, place, action, xyz, facing)
-- todo: sanity check the parameters.
dprint("engio.move ", action, " ", xyz[1], " ", xyz[2], " ", xyz[3])
tangible.animate(actor, nil, {action=action, xyz=xyz, facing=facing})
end
end