Added constructors to tangible.build, more work on keyword argument parsing, added LS.tailcall.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user