gamecore/assets: add activity handling functions

This commit is contained in:
Kazhnuz 2019-05-30 13:54:39 +02:00
parent 67cb930ae7
commit e475604c57

View file

@ -276,4 +276,19 @@ function Assets:clearAutotile()
self.autotile = {}
end
-- ACTIVITY FUNCTIONS
-- Handle activity
function Assets:setActivity(activity)
self.isActive = activity
end
function Assets:switchActivity()
self.isActive = (self.isActive == false)
end
function Assets:getActivity()
return self.isActive
end
return Assets