struct Srcom::SimpleGame
- Srcom::SimpleGame
- Struct
- Value
- Object
Overview
Has shorthand methods to getting the resources that the Link
s 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.
Included Modules
- JSON::Serializable
Defined in:
srcr/mappings/game/simple_game.crConstructors
Instance Method Summary
- #abbreviation : String
- #abbreviation=(abbreviation : String)
- #assets : Game::Assets
- #assets=(assets : Game::Assets)
- #base_game : Game?
-
#categories(miscellaneous : Bool? = nil) : Array(Category)
Gets all the
Category
s this game can be played in. -
#created : Time?
ID => "moderator" | "super-moderator"
-
#created=(created : Time?)
ID => "moderator" | "super-moderator"
- #derived_games(page_size : Int32 = 200) : Srcom::Api::PageIterator(Game)
- #developers : Array(String)
- #developers=(developers : Array(String))
- #engines : Array(String)
- #engines=(engines : Array(String))
-
#full_developers : Array(Developer)
Gets the full
Developer
s that developed this game. -
#full_engines : Array(Engine)
Gets the full
Engine
s this game runs on. -
#full_game : Game
Gets this
SimpleGame
as a fullGame
with everything embedded. -
#full_gametypes : Array(Game::Gametype)
Gets the full
Gametype
s applicable to this game. -
#full_genres : Array(Genre)
Gets the full
Genre
s this game belongs to. -
#full_moderators : Array(User)
Gets the full
User
s that moderate this game. -
#full_platforms : Array(Platform)
Gets the full
Platform
s this game runs on. -
#full_publishers : Array(Publisher)
Gets the full
Publisher
s that published this game. -
#full_regions : Array(Region)
Gets the full
Region
s this game is available in. - #gametypes : Array(String)
- #gametypes=(gametypes : Array(String))
- #genres : Array(String)
- #genres=(genres : Array(String))
- #id : String
- #id=(id : String)
-
#leaderboard : Leaderboard
Returns the
Leaderboard
for theCategory
that is first shown when thisGame
is visited on speedrun.com. -
#levels : Array(Level)
Gets all the
Level
s belonging to this game. - #links : Array(Link)
- #links=(links : Array(Link))
- #moderators : Hash(String, String)
- #moderators=(moderators : Hash(String, String))
-
#name
Shorthand for
Name#international
. - #names : Game::Name
- #names=(names : Game::Name)
- #platforms : Array(String)
- #platforms=(platforms : Array(String))
- #publishers : Array(String)
- #publishers=(publishers : Array(String))
-
#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 thisGame
, skipping over emptyLeaderboard
s if skip_empty istrue
. - #regions : Array(String)
- #regions=(regions : Array(String))
- #release_date : String
- #release_date=(release_date : String)
- #released : Int32
- #released=(released : Int32)
- #romhack : Bool
- #romhack=(romhack : Bool)
- #ruleset : Game::Ruleset
- #ruleset=(ruleset : Game::Ruleset)
- #runs(page_size : Int32 = 200) : Srcom::Api::PageIterator(Run)
- #series : Array(Series)
-
#variables : Array(Variable)
Gets all the
Variable
s applicable to this game. - #weblink : String
- #weblink=(weblink : String)
Constructor Detail
Instance Method Detail
Gets all the Category
s this game can be played in.
Gets the full Developer
s that developed this game.
Gets the full Publisher
s that published this game.
Returns the Leaderboard
for the Category
that is first shown when this Game
is visited
on speedrun.com.
Shorthand for Name#international
.
NOTE This method is present on all things that have the international
+ japanese
name structure.
Gets every Leaderboard
with the top N runs for this Game
, skipping over empty
Leaderboard
s if skip_empty is true
.
If miscellaneous is set to false
, only Leaderboard
s for non-miscellaneous categories will
be returned. If it is set to true
Leaderboard
s 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.
Gets all Run
s 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
.