Re:Rue: Higher level than Rust, lower level than Go
by reactordev on Monday December 22, 2025 @01:11PM
(#46356822)
Yeah that’s what I did and it’s ugly. It works, and allows me to attach multiple behaviors but I would have to initialize them and write that boilerplate code to return them.
I think I might be able to do it with a macro but I’m not a rust guy so I’m limited by my knowledge.
Fyrox, a game engine written in Rust, uses an ECS and several object oriented patterns in their design. Might be a good reference if your interested. The rust book also has a section on OOP patterns in Rust.
I think it's Fyrox anyway. I remember the creator of a Rust game engine talking about it in an interview on Developer Voices. It could have been Bevy I guess, but I don't think so.