godot/
prelude.rs

1/*
2 * Copyright (c) godot-rust; Bromeon and contributors.
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
6 */
7
8pub use super::register::property::{Export, Var};
9
10// Re-export macros.
11pub use super::register::{godot_api, godot_dyn, Export, GodotClass, GodotConvert, Var};
12
13pub use super::builtin::__prelude_reexport::*;
14pub use super::builtin::math::FloatExt as _;
15pub use super::meta::error::{ConvertError, IoError};
16pub use super::meta::{FromGodot, GodotConvert, ToGodot};
17
18pub use super::classes::{
19    INode, INode2D, INode3D, IObject, IPackedScene, IRefCounted, IResource, ISceneTree, Node,
20    Node2D, Node3D, Object, PackedScene, RefCounted, Resource, SceneTree,
21};
22pub use super::global::{
23    godot_error, godot_print, godot_print_rich, godot_script_error, godot_warn,
24};
25pub use super::tools::{load, save, try_load, try_save, GFile};
26
27pub use super::init::{gdextension, ExtensionLibrary, InitLevel};
28pub use super::obj::{
29    AsDyn, Base, DynGd, DynGdMut, DynGdRef, Gd, GdMut, GdRef, GodotClass, Inherits, InstanceId,
30    OnEditor, OnReady,
31};
32
33// Make trait methods available.
34pub use super::obj::EngineBitfield as _;
35pub use super::obj::EngineEnum as _;
36pub use super::obj::NewAlloc as _;
37pub use super::obj::NewGd as _;
38pub use super::obj::WithBaseField as _; // base(), base_mut(), to_gd()
39pub use super::obj::WithSignals as _; // Gd::signals()
40pub use super::obj::WithUserSignals as _; // self.signals()