UnmappedIsland ソースリファレンス - v0.1.0
    検索インデックスを準備しています...

    クラス Localization

    識別子から表示文字列を引く対応表(Localization.md)。WorldCodexは識別子だけを持ち、 画面に出す文字列はこちらが持つ。

    インデックス
    destroyReasons: ReadonlyMap<string, string>
    locations: ReadonlyMap<string, LocationTextsEntry>
    objects: ReadonlyMap<string, ObjectTextsEntry>
    ordinalSuffix: string
    propertyTags: ReadonlyMap<string, DeclaredTexts>
    reasons: ReadonlyMap<string, string>
    signals: ReadonlyMap<string, string>
    slots: ReadonlyMap<string, SlotTextsEntry>
    stages: ReadonlyMap<string, string>
    symbols: ReadonlyMap<string, DeclaredTexts>
    tags: ReadonlyMap<string, string>
    uiTexts: ReadonlyMap<string, string>
    • 消し方の名乗り(GameElementDefinition.md 9.3節のdestroyのreason)の文言。未登録なら識別子そのもの。

      段(stage_texts)とも要件の理由(reason_texts)とも別の名前空間。 消し方の名前は消す宣言が その場で決めるもので、尽きた値がどの段に居るかとも、操作を止めた理由とも関わらない。

      未登録でも識別子を返すのはsignalと同じ理由——消滅は既に起きていて、文言の欠けを黙って 握り潰すと名乗らずに消えた場合と見分けが付かなくなる。

      パラメータ

      • reasonName: string

      戻り値 string

    • 生成された土地の名前(LocationName)を1つの文字列に組み立てる。亜種があればその名前が 土地の名前そのもので、無ければ型の名前になる。

      パラメータ

      戻り値 string

    • 1つのobject_defの表示文字列。未登録のオブジェクトでも、識別子へフォールバックする窓口として必ず返る。

      パラメータ

      • objectDefName: string

      戻り値 ObjectTexts

    • プロパティのタグ(GameElementDefinition.md 6.7節)の表示文字列。未登録なら識別子そのもの。

      パラメータ

      • tagName: string

      戻り値 Texts

    • 操作を実行できない理由(GameElementDefinition.md 14.6節のreason)の文言。未登録ならundefinedで、 呼び出し側は理由を出さない(識別子をそのまま画面へ出しても意味が通らないため)。

      パラメータ

      • reasonName: string

      戻り値 string | undefined

    • 告げられた出来事の文言。未登録なら識別子そのもの。告げ方によらず引き先はここ1つ (告げ方の書き方はGameElementDefinition.md 9.8節)。

      理由(reason)と違って「出さない」選択が無い——出来事が起きたことは既に世界の側で決まっていて、 文言の欠けを黙って握り潰すと、空振りが再び「何も起きない」に戻る。

      パラメータ

      • signalName: string

      戻り値 string

    • 段(GameElementDefinition.md 6.4節のstages)の文言。カードの覆いのように、UIが段の名前を読んで 出す場所で使う(CardView.md 9.1節)。未登録なら識別子そのもの。

      段の名前はプロパティごとの名前空間だが、対応表は平らに持つ——同じ名前の段は同じ言葉で出す。

      パラメータ

      • stageName: string

      戻り値 string

    • シンボル型プロパティの値(GameElementDefinition.md 6.6節。天気のscorching、季節のdryなど)の 表示文字列。未登録なら識別子そのもの。

      値はどのオブジェクトにも属さない独立した名前空間(WorldCodex.symbolNames)にあるので、 プロパティのタグと同じく独立した節から引く。

      パラメータ

      • symbolName: string

      戻り値 Texts

    • object_defのタグ(GameElementDefinition.md 4.1節)の文言。未登録なら識別子そのもの。

      タグの大半は判定のためだけに在って画面へ出ないので、名前を持つのは出す物だけでよい (レシピ一覧の棚の見出し、Windows.md 9節)。

      パラメータ

      • tagName: string

      戻り値 string

    • 画面の地の文(ui_texts)。対応表に無ければ名前そのものが出る——localeファイルの他の節と 同じ扱いで(ja.yaml冒頭)、書き忘れても画面は壊れず、どの語が欠けているかがその場に出る。

      差し込みのある語(「生存 {days} 日目」)はvaluesを添えて引く。書式の書き方は他の節と同じ (Localization.md「書式のプレースホルダは名前で書く」)。

      パラメータ

      • name:
            | "map"
            | "description"
            | "close"
            | "cancel"
            | "ok"
            | "unknown"
            | "list_separator"
            | "properties"
            | "exploration"
            | "cannot_do_now"
            | "no_description"
            | "no_influence"
            | "given_influence"
            | "received_influence"
            | "unnamed_location"
            | "recipe_locked"
            | "recipe_other"
            | "title_start"
            | "settings_title"
            | "shelf_title"
            | "scenarios_title"
            | "slots_title"
            | "survived_days"
            | "slots_delete_title"
            | "slots_delete_body"
            | "slots_delete_confirm"
            | "slots_new"
            | "slots_packs_differ"
            | "slots_packs_title"
            | "slots_packs_reason"
            | "slots_packs_saved"
            | "slots_packs_current"
            | "slots_packs_none"
            | "slots_packs_entry"
            | "slots_packs_hint"
            | "newgame_title"
            | "newgame_island_name"
            | "newgame_island_name_placeholder"
            | "newgame_seed"
            | "newgame_seed_placeholder"
            | "newgame_character"
            | "newgame_back"
            | "newgame_start"
            | "newgame_notice_title"
            | "newgame_notice_island_name"
            | "newgame_notice_seed"
            | "newgame_notice_character"
            | "settings_asset_pack"
            | "settings_asset_pack_detail"
            | "settings_reload_notice"
            | "settings_on"
            | "settings_off"
            | "scenario_detail"
            | "shelf_progress"
            | "shelf_brought"
            | "map_hint"
            | "crafting_autofill"
            | "crafting_autofill_detail"
            | "crafting_work"
            | "crafting_work_detail"
            | "crafting_abort"
            | "crafting_abort_detail"
            | "crafting_no_materials"
            | "recipe_title"
            | "recipe_empty"
            | "duration_minutes"
            | "duration_hours"
            | "duration_hours_minutes"
            | "time_cost"
            | "voyage_days"
            | "days_range"
            | "day"
            | "lane_hidden_cards"
            | "death_exhausted"
            | "death_by_cause"
            | "death_title"
            | "death_no_record"
            | "death_to_slots"
            | "escape_title"
            | "escape_days"
            | "escape_body"
            | "escape_no_record"
            | "escape_to_shelf"
            | "quit_title"
            | "quit_body"
            | "quit_confirm"
            | "error_title"
            | "error_copy"
            | "error_copied"
            | "error_selected"
            | "report_title"
            | "report_time"
            | "report_error"
            | "report_since_start"
            | "report_repeated"
            | "report_operations"
            | "report_no_operations"
            | "report_operation"
            | "report_state"
            | "report_outside_play"
            | "report_state_failed"
            | "report_environment"
            | "report_screen"
            | "report_no_stack"
            | "report_promise_rejection"
            | "state_world_time"
            | "state_location"
            | "state_activity"
            | "state_child_window"
            | "state_no_child_window"
            | "state_hand"
            | "state_empty_cell"
            | "state_items"
            | "state_place"
            | "state_clock"
            | "activity_idle"
            | "activity_exploring"
            | "activity_elapsing"
            | "activity_transiting"
            | "log_at_clock"
            | "log_screen_built"
            | "log_button_tapped"
            | "log_card_tapped"
            | "log_card_grabbed"
            | "log_card_released"
            | "log_card_edge_tapped"
            | "log_settings_toggled"
            | "log_play_opened"
            | "log_from_scenario"
            | "log_from_slot"
            | "log_fixtures_switched"
            | "log_filter_selected"
            | "log_filter_none"
            | "log_card_dropped"
            | "log_card_combined"
            | "log_card_put_in"
            | "log_action"
            | "log_child_window_opened"
            | "log_explored"
            | "log_status_detail_opened"
            | "log_status_pin_toggled"
            | "log_recipe_window_opened"
            | "log_map_opened"
            | "log_died"
            | "log_escaped"
      • オプションvalues: Readonly<Record<string, string>>

      戻り値 string