Kagari
キーワードを入力してドキュメントを検索します。

モジュール

std::prelude

安定性: 安定 — すべてのモジュールにインポートされる名前。

ゲームのすべてのモジュールは、先頭に use std::prelude::*; があるかのように std::prelude を暗黙にインポートします。モジュール内で宣言した名前やインポートした名前はプレリュードの名前より優先されるため、プレリュードがゲーム自身の名前を曖昧にすることはありません。

ここにないものはパスを指定してインポートします。例:use std::screen::anim::rule_with;、use std::narrative::text::speed;。

宣言

kis
pub use crate::{String, Vec, Rat, Decimal, Range, Option, Result, Eq, Integer, RandChoose, ImageAsset, AudioAsset, VoiceAsset, VideoAsset, FontAsset, asset, system_font};
pub use crate::Option::{None, Some};
pub use crate::Result::{Err, Ok};
pub use crate::time::{Duration, ms, secs};
pub use crate::screen::{Screen, Render, EntityId, Part, Point, Offset, Size, Anchor, Color, Plane, Visibility, point, offset, rgb, hex, BLACK, WHITE, TRANSPARENT};
pub use crate::screen::anim::{Easing, Tween, Transition, Motion, tween, instant, cut, fade, rule, wipe, through, motion, jump, nod, shake, quake};
pub use crate::screen::audio::{looped, sound, crossfade};
pub use crate::stage::{Character, character};
pub use crate::narrative::{Text, TextEffect, Say, Choice, ChoiceArm, push_step, rng_choose, Meta, meta, Narrative};
pub use crate::narrative::text::{emphasis, dots, color_text, bold, pause, click_wait, mark};
pub use crate::system::{nav, Setting, setting, System, Settings, Volume, volume, RootPage, Overlay, GameOverlay, Dialog};
pub use crate::ui::{signal, Element};

スコープに入る名前

元名前ページ
stdString、Vec、Rat、Decimal、Range、Option、Result、Eq、Integer、RandChoose、ImageAsset、AudioAsset、VoiceAsset、VideoAsset、FontAsset、asset、system_fontstd
std::OptionNone、Somestd
std::ResultErr、Okstd
std::timeDuration、ms、secsstd::time
std::screenScreen、Render、EntityId、Part、Point、Offset、Size、Anchor、Color、Plane、Visibility、point、offset、rgb、hex、BLACK、WHITE、TRANSPARENTstd::screen
std::screen::animEasing、Tween、Transition、Motion、tween、instant、cut、fade、rule、wipe、through、motion、jump、nod、shake、quakestd::screen::anim
std::screen::audiolooped、sound、crossfadestd::screen::audio
std::stageCharacter、characterstd::stage
std::narrativeText、TextEffect、Say、Choice、ChoiceArm、push_step、rng_choose、Meta、meta、Narrativestd::narrative
std::narrative::textemphasis、dots、color_text、bold、pause、click_wait、markstd::narrative::text
std::systemnav(モジュール)、Setting、setting、System、Settings、Volume、volume、RootPage、Overlay、GameOverlay、Dialogstd::system
std::uisignal、Elementstd::ui

nav はモジュールそのものなので、その関数は use なしで nav::start(…)、nav::back() のように呼べます。

プレリュードにないもの

use が必要なよく使うアイテム:

アイテムuse
ZEROuse std::time::ZERO;
Step、Line、Menu、MenuArm、Arm、HudState、Entry、PlayMode、Markuse std::narrative::{…};
ruby、mono_ruby、effect、concat、to_text、ToTextuse std::narrative::text::{…};(通常は t![…] を通して書きます)
size、italic、font、outline、shadow、speed、speed_scale、reveal_instantuse std::narrative::text::{…};
TextStyle、text_style、Outline、Shadow、TextAlign、EmphasisStyleuse std::narrative::text::{…};
Assetuse std::Asset;

最終更新日 2026年10月29日