Classes
The framework's classes and structs that have pages of their own.
| Name | What it is |
|---|---|
Resource handles | The RAII half, written once for every handle type. |
rmp::Callback | A 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::Camera | The camera |
rmp::Condition | A 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::Dialogue | A conversation: a compiled Yarn script, where it is in it, and what it remembers. |
rmp::DialogueValue | A value of the Yarn language: a number, a string or a bool. |
rmp::Handle | A reference to an object that is safe to keep across frames. |
rmp::MapObject | One 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::Object | An entity in a scene: the player, an enemy, a bullet, a coin, a platform. |
rmp::Ref | An optional reference: something that may not be there, and is not yours. |
rmp::Scene | A screen of the game — a main menu, a level, a pause overlay — with its own objects, map and camera. |
rmp::SheetData | Everything read out of an .aseprite: the packed texture, the frames and the tags. |
rmp::Sprite | What 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::Text | A text the framework draws: translated when it was a literal, as it is when it was made at runtime. |
rmp::TextArg | One placeholder's value: a name and a number or a text. |
rmp::Tilemap | A level read from an LDtk or a Tiled file: its tile layers, which cells are solid, and the objects placed in it. |
rmp::Value | A 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::Button | A button: text, an icon, or both. |
rmp::ui::Checkbox | A checkbox that holds its own value. |
rmp::ui::DialogueBox | The 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::DialogueStage | A 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::Dropdown | A dropdown that holds its items and its choice. |
rmp::ui::Image | A picture with a style — a frame, a shadow — that can be clicked. |
rmp::ui::Label | Text, as text() draws it, with a style of its own: a title in another font, with an outline. |
rmp::ui::Panel | A 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::Picture | Anything rmp::ui can show. |
rmp::ui::ProgressBar | A 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::Slider | A slider that holds its own value. |
rmp::ui::SoundName | The name of a sound, as rmp::audio::play() takes it ("click" is click.wav, click.ogg...): written as a string, .click = "click". |
rmp::ui::TextInput | A text field that holds its own text. |