struct

Srcom::Game::Assets

Inherits JSON::Serializable / Struct / Value / Object

All Assets besides #trophy_4th, #background, and #foreground are always present. If the Game's moderators haven't set any of them, the links will lead to speedrun.com's default graphics.

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

background
Source
background=(background : Asset | Nil)
Source
cover_large
Source
cover_large=(cover_large : Asset)
Source
cover_medium
Source
cover_medium=(cover_medium : Asset)
Source
cover_small
Source
cover_small=(cover_small : Asset)
Source
cover_tiny
Source
cover_tiny=(cover_tiny : Asset)
Source
foreground
Source
foreground=(foreground : Asset | Nil)
Source
icon
Source
icon=(icon : Asset)
Source
logo
Source
logo=(logo : Asset)
Source
trophy_1st
Source
trophy_1st=(trophy_1st : Asset)
Source
trophy_2nd
Source
trophy_2nd=(trophy_2nd : Asset)
Source
trophy_3rd
Source
trophy_3rd=(trophy_3rd : Asset)
Source
trophy_4th
Source
trophy_4th=(trophy_4th : Asset | Nil)
Source