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,29 @@
--[[
{
creatorId : number,
creatorName : string,
name : string,
placeId : number,
iconId : number,
}
]]
local RecommendedGame = {}
function RecommendedGame.new()
local self = {}
return self
end
--TODO: Clean up useNewApi
function RecommendedGame.fromJsonData(gameJson)
local self = RecommendedGame.new()
self.creatorId = gameJson.Creator and gameJson.Creator.CreatorTargetId
self.creatorName = gameJson.Creator and gameJson.Creator.CreatorName
self.name = gameJson.GameName
self.placeId = gameJson.PlaceId
self.iconId = gameJson.ImageId
return self
end
return RecommendedGame