FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.49k stars 339 forks source link

Refactoring of internal structure of resources #570

Closed mrDIMAS closed 7 months ago

mrDIMAS commented 7 months ago

All resource related data is now stored in ResourceHeader instead of being scattered all around in ResourceState variants and even in resource data itself. Backward compatibility is preserved. This PR is mostly to remove clutter and to make the resource system more flexible. ResourceHeader now allows to add new fields (such as UUID per resource) without breaking existing code.