Kagari
Type to search documentation.

Modules

std::prelude

Stability: Stable — the names imported into every module.

Every module of a game imports std::prelude implicitly, as if it started with use std::prelude::*;. A name declared in the module, or imported by it, takes precedence over a prelude name, so the prelude never makes a game’s own name ambiguous.

Everything not listed here is imported by path, for example use std::screen::anim::rule_with; or use std::narrative::text::speed;.

Declaration

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};

Names in scope

FromNamesPage
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 (the module), Setting, setting, System, Settings, Volume, volume, RootPage, Overlay, GameOverlay, Dialogstd::system
std::uisignal, Elementstd::ui

Because nav is the module itself, its functions are called as nav::start(…), nav::back() and so on without a use.

Not in the prelude

Common items that need a use:

Itemuse
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::{…}; (usually written through 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;

Last updated Oct 29, 2026