This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,34 @@
--[[
{
creatorId : number,
creatorName : string,
name : string,
universeId : number,
placeId : number,
imageToken : string,
totalUpVotes : number,
totalDownVotes : number,
}
]]
local Game = {}
function Game.new()
local self = {}
return self
end
function Game.fromJsonData(gameJson)
local self = Game.new()
self.creatorId = gameJson.creatorId
self.creatorName = gameJson.creatorName
self.name = gameJson.name
self.universeId = gameJson.universeId
self.placeId = gameJson.placeId
self.imageToken = gameJson.imageToken
self.totalUpVotes = gameJson.totalUpVotes
self.totalDownVotes = gameJson.totalDownVotes
return self
end
return Game