Classes

The framework's classes and structs that have pages of their own.

NameWhat it is
Resource handlesThe RAII half, written once for every handle type.
rmp::CallbackA function the framework keeps and calls later with arguments of types A...: what on_click(), on_drag(), on_collision() and Tilemap::on_object() store, and the type of the on_ fields of the behaviors.
rmp::CameraThe camera
rmp::ConditionA question the framework asks later with arguments of types A...: a StateMachine's transition, an Animator's rule, whether a Draggable may be dropped.
rmp::DialogueA conversation: a compiled Yarn script, where it is in it, and what it remembers.
rmp::DialogueValueA value of the Yarn language: a number, a string or a bool.
rmp::HandleA reference to an object that is safe to keep across frames.
rmp::MapObjectOne object placed in the map, as spawn_objects() hands it to the factory registered for its type: where it is, how big, and its properties.
rmp::ObjectAn entity in a scene: the player, an enemy, a bullet, a coin, a platform.
rmp::RefAn optional reference: something that may not be there, and is not yours.
rmp::SceneA screen of the game — a main menu, a level, a pause overlay — with its own objects, map and camera.
rmp::SheetDataEverything read out of an .aseprite: the packed texture, the frames and the tags.
rmp::SpriteWhat an Object draws in place of its shape when it has one: a texture or a sheet, placed by origin around the object's position and turned, scaled and flipped with the object.
rmp::TextA text the framework draws: translated when it was a literal, as it is when it was made at runtime.
rmp::TextArgOne placeholder's value: a name and a number or a text.
rmp::TilemapA level read from an LDtk or a Tiled file: its tile layers, which cells are solid, and the objects placed in it.
rmp::ValueA tree: nothing, a bool, a number, a string, a list or an object — exactly what JSON holds, so a real structure fits and not only flat pairs.
rmp::ui::ButtonA button: text, an icon, or both.
rmp::ui::CheckboxA checkbox that holds its own value.
rmp::ui::DialogueBoxThe classic box: along the bottom of the screen, the speaker's portrait and name beside the line, the choices as buttons under it.
rmp::ui::DialogueStageA visual novel's stage: big portraits of who is on it, the speaker in front and the rest dimmed, and the line in a box under them.
rmp::ui::DropdownA dropdown that holds its items and its choice.
rmp::ui::ImageA picture with a style — a frame, a shadow — that can be clicked.
rmp::ui::LabelText, as text() draws it, with a style of its own: a title in another font, with an outline.
rmp::ui::PanelA container: a panel with a look of its own (style), and a look for everything inside it (children), which every descendant inherits — the nearest container's wins.
rmp::ui::PictureAnything rmp::ui can show.
rmp::ui::ProgressBarA progress bar with a look of its own: the style is the track's (its background, its skin), fill and fill_picture the bar's.
rmp::ui::SliderA slider that holds its own value.
rmp::ui::SoundNameThe name of a sound, as rmp::audio::play() takes it ("click" is click.wav, click.ogg...): written as a string, .click = "click".
rmp::ui::TextInputA text field that holds its own text.