Module rust_rpg_toolkit::prelude[][src]

Re-exports

pub use macroquad::prelude::rand;
pub use mode;
pub use crate::ability::Ability;
pub use crate::ability::AbilityDelivery;
pub use crate::ability::AbilityParams;
pub use crate::ability::DamageType;
pub use crate::ability::Effect;
pub use crate::audio::get_volume;
pub use crate::audio::load_sound;
pub use crate::audio::load_sound_from_bytes;
pub use crate::audio::play_sound;
pub use crate::audio::Sound;
pub use crate::audio::VolumeCategory;
pub use crate::behavior_sets;
pub use crate::behavior_sets::get_behavior_set;
pub use crate::behavior_sets::register_behavior_set;
pub use crate::behavior_sets::ActorBehaviorConstructor;
pub use crate::behavior_sets::DEFAULT_BEHAVIOR_SET_ID;
pub use crate::chapter::Chapter;
pub use crate::chapter::ChapterParams;
pub use crate::character::character_name_to_path;
pub use crate::character::delete_character;
pub use crate::character::get_available_characters;
pub use crate::character::load_character;
pub use crate::character::Character;
pub use crate::config::Config;
pub use crate::dialogue::Dialogue;
pub use crate::dialogue::DialogueAction;
pub use crate::dialogue::DialogueRequirement;
pub use crate::error::Error;
pub use crate::error::ErrorKind;
pub use crate::error::Result;
pub use crate::events::dispatch_event;
pub use crate::events::get_next_event;
pub use crate::events::handle_event;
pub use crate::events::handle_queued_events;
pub use crate::events::Event;
pub use crate::file_io::load_file;
pub use crate::file_io::load_file_to_string;
pub use crate::game::begin_frame;
pub use crate::game::end_frame;
pub use crate::game::init;
pub use crate::game::GameParams;
pub use crate::gui;
pub use crate::gui::GuiState;
pub use crate::helpers;
pub use crate::helpers::generate_id;
pub use crate::helpers::get_timestamp;
pub use crate::helpers::remove_filename;
pub use crate::helpers::sort_by_distance;
pub use crate::input;
pub use crate::input::apply_input;
pub use crate::input::get_mouse_in_world_space;
pub use crate::input::get_mouse_position;
pub use crate::inventory::Inventory;
pub use crate::inventory::InventoryEntry;
pub use crate::inventory::InventoryParams;
pub use crate::json;
pub use crate::map::Map;
pub use crate::map::MapLayer;
pub use crate::map::MapLayerKind;
pub use crate::map::MapObject;
pub use crate::map::MapProperty;
pub use crate::map::MapTile;
pub use crate::map::MapTileset;
pub use crate::map::NavigationPath;
pub use crate::map::ObjectLayerKind;
pub use crate::missions::Mission;
pub use crate::missions::MissionObjective;
pub use crate::missions::MissionParams;
pub use crate::missions::MissionReward;
pub use crate::nodes::actor::Actor;
pub use crate::nodes::actor::ActorParams;
pub use crate::nodes::draw_buffer::Bounds;
pub use crate::nodes::draw_buffer::BufferedDraw;
pub use crate::nodes::draw_buffer::DrawBuffer;
pub use crate::nodes::item::Item;
pub use crate::nodes::item::ItemKind;
pub use crate::nodes::item::ItemParams;
pub use crate::nodes::light_source::LightSource;
pub use crate::nodes::projectiles::ProjectileKind;
pub use crate::nodes::projectiles::Projectiles;
pub use crate::nodes::CameraController;
pub use crate::nodes::ContinuousBeams;
pub use crate::nodes::Credits;
pub use crate::nodes::GameState;
pub use crate::nodes::Hud;
pub use crate::nodes::MapRenderer;
pub use crate::nodes::PostProcessing;
pub use crate::noise_level::NoiseLevel;
pub use crate::physics::CollisionKind;
pub use crate::player::get_player_actor;
pub use crate::player::LocalPlayer;
pub use crate::render::color_from_hex_string;
pub use crate::render::draw_progress_bar;
pub use crate::render::draw_text;
pub use crate::render::draw_texture;
pub use crate::render::use_default_material;
pub use crate::render::use_material;
pub use crate::render::HorizontalAlignment;
pub use crate::render::Material;
pub use crate::render::Sprite;
pub use crate::render::SpriteAnimationParams;
pub use crate::render::SpriteAnimationPlayer;
pub use crate::render::Texture;
pub use crate::render::VerticalAlignment;
pub use crate::render::Viewport;
pub use crate::render::COLOR_NONE;
pub use crate::resources::Resources;
pub use crate::scene::DrawStage;
pub use crate::scene::SceneBuilder;
pub use crate::scene::SceneBuilderFunc;
pub use crate::versions::check_version;
pub use crate::versions::get_toolkit_version;
pub use crate::versions::to_int_version;

Modules

bool vector mask types.

Color types and helpers.

f32 vector, quaternion and matrix types.

f64 vector, quaternion and matrix types.

i32 vector types.

Global persistent storage. Nice for some global game configs available everywhere. Yes, singletons available right here, with a nice API and some safety. Global read-only storage

Traits adding swizzle methods to all vector types.

u32 vector types.

Macros

Creates a DMat2 from two column vectors that can be used to initialize a constant value.

Creates a DMat3 from three column vectors that can be used to initialize a constant value.

Creates a DMat4 from four column vectors that can be used to initialize a constant value.

Creates a DQuat from x, y, z and w values that can be used to initialize a constant value.

Creates a DVec2 that can be used to initialize a constant value.

Creates a DVec3 that can be used to initialize a constant value.

Creates a DVec4 that can be used to initialize a constant value.

Creates a IVec2 that can be used to initialize a constant value.

Creates a IVec3 that can be used to initialize a constant value.

Creates a IVec4 that can be used to initialize a constant value.

Creates a Mat2 from two column vectors that can be used to initialize a constant value.

Creates a Mat3 from three column vectors that can be used to initialize a constant value.

Creates a Mat4 from four column vectors that can be used to initialize a constant value.

Creates a Quat from x, y, z and w values that can be used to initialize a constant value.

Creates a UVec2 that can be used to initialize a constant value.

Creates a UVec3 that can be used to initialize a constant value.

Creates a UVec4 that can be used to initialize a constant value.

Creates a Vec2 that can be used to initialize a constant value.

Creates a Vec3 that can be used to initialize a constant value.

Creates a Vec3A that can be used to initialize a constant value.

Creates a Vec4 that can be used to initialize a constant value.

Structs

Represents a state machine over a set of Modes within the same Family.

A 2-dimensional boolean vector.

A 3-dimensional boolean vector.

A 4-dimensional boolean vector.

A 2x2 column major matrix.

A 3x3 column major matrix.

A 4x4 column major matrix.

A quaternion representing an orientation.

A 2-dimensional vector.

A 3-dimensional vector.

A 4-dimensional vector.

TTF font loaded to GPU

A hash map implemented with quadratic probing and SIMD lookup.

A 2-dimensional vector.

A 3-dimensional vector.

A 4-dimensional vector.

Image, data stored in CPU memory

A 2x2 column major matrix.

A 3x3 column major matrix.

A 4x4 column major matrix.

Params used for material loading. It is not possible to change material params at runtime, so this struct is used only once - at “load_material”.

A quaternion representing an orientation.

Arguments for “draw_text_ex” function such as font, font_size etc

A 2-dimensional vector.

A 3-dimensional vector.

A 4-dimensional vector.

A 2-dimensional vector.

A 3-dimensional vector without SIMD support.

A 3-dimensional vector.

A 4-dimensional vector.

Enums

An enumeration of supported image formats. Not all formats support both encoding and decoding.

Traits

The addition operator +.

The division operator /.

Conversion from an Iterator.

Trait that defines a state within some Family, and can be made active in an Automaton.

The multiplication operator *.

The subtraction operator -.

Swizzle methods for 2-dimensional vector types.

Swizzle methods for 3-dimensional vector types.

Swizzle methods for 3-dimensional vector types.

Functions

Converts 2d cartesian coordinates to 2d polar coordinates.

Returns value, bounded in range [min, max].

Creates a 2x2 matrix from two column vectors.

Creates a 3x3 matrix from three column vectors.

Creates a 4x4 matrix from four column vectors.

Creates a quaternion from x, y, z and w values.

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Returns current FPS

Returns duration in seconds of the last frame drawn

Returns elapsed wall-clock time in seconds since start

Use default macroquad material.

All following macroquad rendering calls will use the given material.

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Load font from bytes array, may be use in combination with include_bytes!

Creates a 2x2 matrix from two column vectors.

Creates a 3x3 matrix from three column vectors.

Creates a 4x4 matrix from four column vectors.

Converts 2d polar coordinates to 2d cartesian coordinates.

Creates a quaternion from x, y, z and w values.

Reset default 2D camera mode

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Creates a 2-dimensional vector.

Creates a 3-dimensional vector.

Creates a 3-dimensional vector.

Creates a 4-dimensional vector.

Type Definitions