Kyjor / JulGame.jl

JulGame is a game engine based on the Julia programming language with the help of SDL2.
https://docs.kyjor.io/JulGame.jl
The Unlicense
94 stars 3 forks source link

Feature/158 refactor component creation to use structs as dtos #40

Closed Kyjor closed 6 months ago

Kyjor commented 6 months ago

This is a refactor of the components. This allows the parent field in components to be type stable, along with quite a few other fields that were made type stable. The components are their own field on an entity. This required some fixes for the editor as well. This is based off of the conversation from #35

Kyjor commented 6 months ago

Refactor Component Creation to Pass Parent to the Constructor