Crate godot_core
source ·Expand description
§Internal crate of godot-rust
Do not depend on this crate directly, instead use the godot crate.
No SemVer or other guarantees are provided.
Re-exports§
pub use godot_ffi as sys;
Modules§
- Built-in types like
Vector2,GStringandVariant. - Maps the Godot class API to Rust.
- Godot global enums, constants and utility functions.
- Meta-information about variant types, properties and class names.
- Types and traits related to objects.
- Higher-level additions to the Godot engine API.
Macros§
- Constructs [
Array] literals, similar to Rust’s standardvec!macro. - Asserts that two values are approximately equal
- Asserts that two values are not approximately equal, using the provided
funcfor equality checking. - Constructs [
Dictionary] literals, close to Godot’s own syntax. - Pushes an error message to Godot’s built-in debugger and to the OS terminal.
- Prints to the Godot console.
- Prints to the Godot console. Supports BBCode, color and URL tags.
- Logs a script error to Godot’s built-in debugger and to the OS terminal.
- Pushes a warning message to Godot’s built-in debugger and to the OS terminal.
- Implements
Boundsfor a user-defined class. - A macro to coerce float-literals into the [
real] type. - Array of reals.
- Access vector components in different order.
- A convenience macro for using the
Object::tr()andObject::tr_ex()methods. - A convenience macro for using the
Object::tr_n()andObject::tr_n_ex()methods. - Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Safety
- Constructs [
VariantArray] literals, similar to Rust’s standardvec!macro.