-
Notifications
You must be signed in to change notification settings - Fork 401
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
archetype_native
attribute and make ContainerBlueprint
eager …
…+ partial (#8666) Introduces a new attribute that, when paired with an eager archetype, will also generate a native companion type with back-and-forth conversion methods. This is especially useful for blueprint archetypes (although there are definitely non-blueprint examples too), which are heavily used all across the viewer, and would be very painful to use otherwise. ```rust /// Whether we should generate an extra Rust object comprised of native Rust types. /// /// The generated object will have the name of the archetype, prefixed by `Native`, /// e.g. `NativePoints3D`. /// /// Applies only to *eager* archetypes. No-op otherwise. attribute "attr.rust.archetype_native"; ``` With this, we now should have all the tools required to port every remaining archetype (both blueprint and data). * Part of #8650
- Loading branch information
Showing
13 changed files
with
554 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.