aboutsummaryrefslogtreecommitdiff
path: root/plugins/inanimate.lua
blob: 90e3625ff8445ae3a72fe8d3dac62ae1ea52aeee (plain)
1
2
3
4
5
6
7
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