struct

Srcom::SimpleGame

Inherits JSON::Serializable / Struct / Value / Object

Has shorthand methods to getting the resources that the Links in #links point to. Also has shorthand methods to get all the full resources for things that didn't get embedded.

NOTE: Not covering the romhacks link, since it is deprecated and synonymous with derived-games.

Constructors

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

Instance methods

abbreviation
Source
abbreviation=(abbreviation : String)
Source
assets
Source
assets=(assets : Game::Assets)
Source
base_game

Returns the Game this Game is derived from, if it is a derived game.

Source
categories(miscellaneous : Bool | Nil = nil) : Array(Category)

Gets all the Categorys this game can be played in.

Source
created
Source
created=(created : Time | Nil)
Source
derived_games(page_size : Int32 = 200) : Srcom::Api::PageIterator(Game)

Returns all Games derived from this Game.

Source
developers
Source
developers=(developers : Array(String))
Source
engines
Source
engines=(engines : Array(String))
Source
full_developers

Gets the full Developers that developed this game.

Source
full_engines

Gets the full Engines this game runs on.

Source
full_game

Gets this SimpleGame as a full Game with everything embedded.

Source
full_gametypes

Gets the full Gametypes applicable to this game.

Source
full_genres

Gets the full Genres this game belongs to.

Source
full_moderators

Gets the full Users that moderate this game.

Source
full_platforms

Gets the full Platforms this game runs on.

Source
full_publishers

Gets the full Publishers that published this game.

Source
full_regions

Gets the full Regions this game is available in.

Source
gametypes
Source
gametypes=(gametypes : Array(String))
Source
genres
Source
genres=(genres : Array(String))
Source
id=(id : String)
Source
leaderboard

Returns the Leaderboard for the Category that is first shown when this Game is visited on speedrun.com.

Source
levels

Gets all the Levels belonging to this game.

Source
moderators
Source
moderators=(moderators : Hash(String, String))
Source
name

Shorthand for Name#international.

NOTE: This method is present on all things that have the international + japanese name structure.

Source
names
Source
names=(names : Game::Name)
Source
platforms
Source
platforms=(platforms : Array(String))
Source
publishers
Source
publishers=(publishers : Array(String))
Source
records(top : Int32 = 3, scope : String = "all", miscellaneous : Bool = true, skip_empty : Bool = false, page_size : Int32 = 200) : Srcom::Api::PageIterator(Leaderboard)

Gets every Leaderboard with the top N runs for this Game, skipping over empty Leaderboards if skip_empty is true.

If miscellaneous is set to false, only Leaderboards for non-miscellaneous categories will be returned. If it is set to true Leaderboards for both miscellaneous and non-miscellaneous categories will be returned.

NOTE: This can result in more than N runs per Leaderboard, as ties can occur.

Source
regions
Source
regions=(regions : Array(String))
Source
release_date
Source
release_date=(release_date : String)
Source
released
Source
released=(released : Int32)
Source
romhack
Source
romhack=(romhack : Bool)
Source
ruleset
Source
ruleset=(ruleset : Game::Ruleset)
Source
runs(page_size : Int32 = 200) : Srcom::Api::PageIterator(Run)

Gets all Runs completed in this Game.

Defaults to getting all of them since there shouldn't be an absurd amount of Run“s in a single Game`.

Source
series

Gets all the Series this Game belongs to, if it belongs to any.

NOTE: It is both possible for a game to not be part of a Series, and for it to be part of several.

Source
variables

Gets all the Variables applicable to this game.

Source