Skip to content

Commit

Permalink
Merge pull request godot-rust#897 from godot-rust/qol/experimental-cl…
Browse files Browse the repository at this point in the history
…asses

Update list of experimental classes
  • Loading branch information
Bromeon authored Sep 17, 2024
2 parents 671fcb5 + 837a709 commit e416a55
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions godot-codegen/src/special_cases/special_cases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,24 @@ pub fn is_class_experimental(godot_class_name: &str) -> bool {
// Note: parameter can be a class or builtin name, but also something like "enum::AESContext.Mode".

// These classes are currently hardcoded, but the information is available in Godot's doc/classes directory.
// The XML file contains a property <class name="NavigationMesh" ... is_experimental="true">.
// The XML file contains a property <class name="NavigationMesh" ... experimental="">.

// Last update: 2024-09-15; Godot rev 6681f2563b99e14929a8acb27f4908fece398ef1.
match godot_class_name {
| "AudioSample"
| "AudioSamplePlayback"
| "Compositor"
| "CompositorEffect"
| "GraphEdit"
| "GraphElement"
| "GraphFrame"
| "GraphNode"
| "NavigationAgent2D"
| "NavigationAgent3D"
| "NavigationLink2D"
| "NavigationLink3D"
| "NavigationMesh"
| "NavigationMeshSourceGeometryData2D"
| "NavigationMeshSourceGeometryData3D"
| "NavigationObstacle2D"
| "NavigationObstacle3D"
Expand All @@ -168,6 +176,7 @@ pub fn is_class_experimental(godot_class_name: &str) -> bool {
| "NavigationRegion3D"
| "NavigationServer2D"
| "NavigationServer3D"
| "Parallax2D"
| "SkeletonModification2D"
| "SkeletonModification2DCCDIK"
| "SkeletonModification2DFABRIK"
Expand All @@ -178,8 +187,11 @@ pub fn is_class_experimental(godot_class_name: &str) -> bool {
| "SkeletonModification2DTwoBoneIK"
| "SkeletonModificationStack2D"
| "StreamPeerGZIP"
| "TextureRect"

| "XRBodyModifier3D"
| "XRBodyTracker"
| "XRFaceModifier3D"
| "XRFaceTracker"

=> true, _ => false
}
}
Expand Down

0 comments on commit e416a55

Please sign in to comment.