feat: add variables, flags and destroyed gizmoz

This commit is contained in:
Kazhnuz 2021-03-22 19:00:54 +01:00
parent 8ba84e03aa
commit 50838c3982

View file

@ -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