gamecore/assets: add activity handling functions
This commit is contained in:
parent
67cb930ae7
commit
e475604c57
1 changed files with 15 additions and 0 deletions
|
@ -276,4 +276,19 @@ function Assets:clearAutotile()
|
||||||
self.autotile = {}
|
self.autotile = {}
|
||||||
end
|
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
|
return Assets
|
||||||
|
|
Loading…
Reference in a new issue