fuzzybinary / fuzzybinary/godot_dart
Reimplement certain Builtin types in Dart
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 203
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
godot-cpp doesn't generate a lot of the builtin types, especially the math heavy ones, as going back and forth through the Godot calling system would be cumbersome. Instead, they re-implement them in C++
We should take a similar approach in Dart, only copying values out to opaque memory when needed. The classes that should get this treatment are:
- aabb
- basis
- color
- plane
- projection
- quaternion
- rect2
- rect2i
- transform2d
- transform3d
- vector2
- vector2i
- vector3
- vector3i
- vector4
- vector4i
This will also allow us to simplify their interfaces, including allowing default parameters for constructors instead of using named constructors for everything but the default.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating the Dart implementations of the listed builtin types and compare their intended approach with godot-cpp; define the opaque-memory boundary and interface changes before editing. Done means all listed types use the new treatment and their constructors support the intended default parameters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, dart
- Domain
- game-dev
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100