Module: Configs

Defined in:
docs/000_a_root.rb,
docs/3_Studio.rb,
docs/4_Systems_001_Title.rb,
docs/4_Systems_002_Credits.rb,
docs/4_Systems_106_Save_Load.rb

Overview

end

Defined Under Namespace

Modules: Project Classes: CreditsConfig, Flavors, Natures, SaveConfig, SceneTitleConfig, States, Stats, Window

Constant Summary collapse

KEY_TRANSLATIONS =

List of keys from file to ruby world

{isMouseDisabled: :is_mouse_disabled, mouseSkin: :mouse_skin, gameResolution: :game_resolution, windowScale: :window_scale, isFullscreen: :is_fullscreen, isPlayerAlwaysCentered: :is_player_always_centered, tilemapSettings: :tilemap_settings, introMovieMapId: :intro_movie_map_id, bgmName: :bgm_name, bgmDuration: :bgm_duration, isLanguageSelectionEnabled: :language_selection_enabled, additionalSplashes: :additional_splashes, controlWaitTime: :control_wait, maximumSave: :maximum_save_count, saveKey: :save_key, saveHeader: :save_header, baseFilename: :base_filename, isCanSaveOnAnySave: :can_save_on_any_save, projectSplash: :project_splash, lineHeight: :line_height, scrollSpeed: :speed, leaderSpacing: :leader_spacing, chiefProjectTitle: :chief_project_title, chiefProjectName: :chief_project_name, gameCredits: :game_credits, pokemonMaxLevel: :max_level, isAlwaysUseForm0ForEvolution: :always_use_form0_for_evolution, isUseForm0WhenNoEvolutionData: :use_form0_when_no_evolution_data, maxBagItemCount: :max_bag_item_count, isSmoothTexture: :smooth_texture, isVsyncEnabled: :vsync_enabled, gameTitle: :game_title, gameVersion: :game_version, defaultLanguage: :default_language_code, choosableLanguageCode: :choosable_language_code, choosableLanguageTexts: :choosable_language_texts}
SCRIPTS_REQUIRED_CONFIG =

Name of the file that must exist if we want to successfully load scripts

'Data/configs/display_config.json'

Class Method Summary collapse

Class Method Details

.register(name, filename, type, preload, klass)

Register a new config

Parameters:

  • name (Symbol)

    name of the config

  • filename (String)

    name of the file inside Data/configs

  • type (Symbol)

    type of the config file: :yml or :json

  • preload (Boolean)

    if the file need to be preloaded

  • klass (Class)

    class describing the config content



197
198
# File 'docs/000_a_root.rb', line 197

def register(name, filename, type, preload, klass)
end