From e475604c57047c20aab53718f0a2c0bdd81f951e Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 30 May 2019 13:54:39 +0200 Subject: [PATCH] gamecore/assets: add activity handling functions --- gamecore/modules/assets/init.lua | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gamecore/modules/assets/init.lua b/gamecore/modules/assets/init.lua index d6162b8..1634110 100644 --- a/gamecore/modules/assets/init.lua +++ b/gamecore/modules/assets/init.lua @@ -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