From 50838c3982adfefc59bbc6f1149d83ae5ea560ae Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 22 Mar 2021 19:00:54 +0100 Subject: [PATCH] feat: add variables, flags and destroyed gizmoz --- sonic-radiance.love/game/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sonic-radiance.love/game/init.lua b/sonic-radiance.love/game/init.lua index 7e99fc0..c6b28e6 100644 --- a/sonic-radiance.love/game/init.lua +++ b/sonic-radiance.love/game/init.lua @@ -44,12 +44,19 @@ function Game:new() self.skills = Skills(self) self.loot = Loot(self) + self.flags = {} + self.destroyedGizmo = {} + self.variables = {} + self.version = "0.0.0" end function Game:setData(data) local data = data self.gametime = data.gametime + self.destroyedGizmo = data.destroyedGizmo + self.variables = data.variables + self.flags = data.flags self.characters:setData(data.characters) end @@ -57,6 +64,9 @@ function Game:getData() local data = {} data.gametime = self.gametime data.characters = self.characters:getData() + data.flags = self.flags + data.destroyedGizmo = self.destroyedGizmo + data.variables = self.variables return data end