mirror of
https://github.com/Insality/druid.git
synced 2025-06-27 10:27:47 +02:00
29 lines
484 B
Lua
29 lines
484 B
Lua
local druid = require("druid.druid")
|
|
|
|
|
|
function init(self)
|
|
self.druid = druid.new(self)
|
|
druid.register_druid_as_widget(self.druid)
|
|
end
|
|
|
|
|
|
function final(self)
|
|
druid.unregister_druid_as_widget()
|
|
self.druid:final()
|
|
end
|
|
|
|
|
|
function update(self, dt)
|
|
self.druid:update(dt)
|
|
end
|
|
|
|
|
|
function on_message(self, message_id, message, sender)
|
|
self.druid:on_message(message_id, message, sender)
|
|
end
|
|
|
|
|
|
function on_input(self, action_id, action)
|
|
return self.druid:on_input(action_id, action)
|
|
end
|