Skip to content

Commit 3d8ce6a

Browse files
committed
move mods around
1 parent bcf8ed9 commit 3d8ce6a

File tree

6 files changed

+32
-25
lines changed

6 files changed

+32
-25
lines changed
File renamed without changes.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
8+
mod basis;
9+
mod projection;
10+
mod transform2d;
11+
mod transform3d;
12+
13+
pub use basis::*;
14+
pub use projection::*;
15+
pub use transform2d::*;
16+
pub use transform3d::*;

godot-core/src/builtin/projection.rs renamed to godot-core/src/builtin/matrices/projection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ use std::ops::Mul;
1010
use godot_ffi as sys;
1111
use sys::{ffi_methods, ExtVariantType, GodotFfi};
1212

13-
use super::{Aabb, Rect2, Vector3};
1413
use crate::builtin::math::{ApproxEq, GlamConv, GlamType};
1514
use crate::builtin::{
16-
inner, real, Plane, RMat4, RealConv, Transform3D, Vector2, Vector4, Vector4Axis,
15+
inner, real, Aabb, Plane, RMat4, RealConv, Rect2, Transform3D, Vector2, Vector3, Vector4,
16+
Vector4Axis,
1717
};
1818

1919
/// A 4x4 matrix used for 3D projective transformations.

godot-core/src/builtin/mod.rs

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,19 @@ pub mod __prelude_reexport {
2828
use super::*;
2929

3030
pub use aabb::*;
31-
pub use basis::*;
3231
pub use callable::*;
3332
pub use collections::containers::*;
3433
pub use color::*;
3534
pub use color_hsv::*;
35+
pub use matrices::*;
3636
pub use plane::*;
37-
pub use projection::*;
3837
pub use quaternion::*;
3938
pub use real_inner::*;
4039
pub use rect2::*;
4140
pub use rect2i::*;
4241
pub use rid::*;
4342
pub use signal::*;
4443
pub use string::{Encoding, GString, NodePath, StringName};
45-
pub use transform2d::*;
46-
pub use transform3d::*;
4744
pub use variant::*;
4845
pub use vectors::*;
4946

@@ -61,23 +58,21 @@ pub mod __prelude_reexport {
6158

6259
// #[doc(hidden)]
6360
// pub mod __sidecar_reexport {
64-
pub use crate::gen::builtin_classes::*;
61+
pub use crate::gen::builtin_classes::*;
6562

66-
// Special case for gstring + string_name modules, which have also manually-defined symbols.
63+
// Special case for gstring + string_name modules, which have also manually-defined symbols.
6764

68-
/// Manual symbols and default extenders for builtin type [`GString`].
69-
pub mod gstring {
70-
pub use crate::builtin::string::{ExGStringFind, ExGStringSplit};
71-
pub use crate::gen::builtin_classes::gstring::*;
72-
}
65+
/// Manual symbols and default extenders for builtin type [`GString`].
66+
pub mod gstring {
67+
pub use crate::builtin::string::{ExGStringFind, ExGStringSplit};
68+
pub use crate::gen::builtin_classes::gstring::*;
69+
}
7370

74-
/// Manual symbols and default extenders for builtin type [`StringName`].
75-
pub mod string_name {
76-
pub use crate::builtin::string::{
77-
ExStringNameFind, ExStringNameSplit, TransientStringNameOrd,
78-
};
79-
pub use crate::gen::builtin_classes::string_name::*;
80-
}
71+
/// Manual symbols and default extenders for builtin type [`StringName`].
72+
pub mod string_name {
73+
pub use crate::builtin::string::{ExStringNameFind, ExStringNameSplit, TransientStringNameOrd};
74+
pub use crate::gen::builtin_classes::string_name::*;
75+
}
8176
// }
8277

8378
pub use __prelude_reexport::*;
@@ -92,7 +87,6 @@ pub mod iter {
9287
pub use super::collections::iterators::*;
9388
}
9489

95-
9690
pub(crate) mod meta_reexport {
9791
pub use super::collections::PackedArrayElement;
9892
}
@@ -105,22 +99,19 @@ mod macros;
10599

106100
// Other modules
107101
mod aabb;
108-
mod basis;
109102
mod callable;
110103
mod collections;
111104
mod color;
112105
mod color_constants; // After color, so that constants are listed after methods in docs (alphabetic ensures that).
113106
mod color_hsv;
107+
mod matrices;
114108
mod plane;
115-
mod projection;
116109
mod quaternion;
117110
mod rect2;
118111
mod rect2i;
119112
mod rid;
120113
mod signal;
121114
mod string;
122-
mod transform2d;
123-
mod transform3d;
124115
mod variant;
125116
mod vectors;
126117

0 commit comments

Comments
 (0)