diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/inanimate.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/inanimate.lua b/plugins/inanimate.lua new file mode 100644 index 0000000..90e3625 --- /dev/null +++ b/plugins/inanimate.lua @@ -0,0 +1,8 @@ +local View = require "core.view" + +function View:move_towards(t, k, dest) + if type(t) ~= "table" then + return self:move_towards(self, t, k, dest) + end + t[k] = dest +end |