feat: add variables, flags and destroyed gizmoz
This commit is contained in:
parent
8ba84e03aa
commit
50838c3982
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue