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    AudioStreamPlayer, Camera2D, Camera3D, IAudioStreamPlayer, ICamera2D, ICamera3D, INode,
20    INode2D, INode3D, IObject, IPackedScene, IRefCounted, IResource, ISceneTree, Input, Node,
21    Node2D, Node3D, Object, PackedScene, RefCounted, Resource, SceneTree,
22};
23pub use super::global::{
24    godot_error, godot_print, godot_print_rich, godot_script_error, godot_warn,
25};
26pub use super::tools::{load, save, try_load, try_save, GFile};
27
28pub use super::init::{gdextension, ExtensionLibrary, InitLevel};
29pub use super::obj::{
30    AsDyn, Base, DynGd, DynGdMut, DynGdRef, Gd, GdMut, GdRef, GodotClass, Inherits, InstanceId,
31    OnReady,
32};
33
34// Make trait methods available.
35pub use super::obj::EngineBitfield as _;
36pub use super::obj::EngineEnum as _;
37pub use super::obj::NewAlloc as _;
38pub use super::obj::NewGd as _;
39pub use super::obj::WithBaseField as _; // base(), base_mut(), to_gd()