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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
abbreviation=(abbreviation : String)
Sourceassets=(assets : Game::Assets)
Sourcebase_game
Returns the Game this Game is derived from, if it is a derived game.
Sourcecategories(miscellaneous : Bool | Nil = nil) : Array(Category)
Gets all the Categorys this game can be played in.
Sourcecreated=(created : Time | Nil)
SourceReturns all Games derived from this Game.
Sourcedevelopers=(developers : Array(String))
Sourceengines=(engines : Array(String))
Sourcefull_developers
Gets the full Developers that developed this game.
Sourcefull_engines
Gets the full Engines this game runs on.
Sourcefull_game
Gets this SimpleGame as a full Game with everything embedded.
Sourcefull_gametypes
Gets the full Gametypes applicable to this game.
Sourcefull_genres
Gets the full Genres this game belongs to.
Sourcefull_moderators
Gets the full Users that moderate this game.
Sourcefull_publishers
Gets the full Publishers that published this game.
Sourcefull_regions
Gets the full Regions this game is available in.
Sourcegametypes=(gametypes : Array(String))
Sourcegenres=(genres : Array(String))
Sourceleaderboard
Returns the Leaderboard for the Category that is first shown when this Game is visited
on speedrun.com.
Sourcelevels
Gets all the Levels belonging to this game.
Sourcelinks=(links : Array(Link))
Sourcemoderators=(moderators : Hash(String, String))
Sourcename
Shorthand for Name#international.
NOTE: This method is present on all things that have the international + japanese name structure.
Sourcenames=(names : Game::Name)
Sourcepublishers=(publishers : Array(String))
Sourcerecords(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.
Sourceregions=(regions : Array(String))
Sourcerelease_date=(release_date : String)
Sourcereleased=(released : Int32)
Sourceromhack=(romhack : Bool)
Sourceruleset=(ruleset : Game::Ruleset)
SourceGets 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`.
Sourceseries
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.
Sourcevariables
Gets all the Variables applicable to this game.
Sourceweblink=(weblink : String)
Source