Skip to content

Refactor access patterns of UnsafeWorldCell #12214

@alice-i-cecile

Description

@alice-i-cecile

Not super comfortable with this, since the rest of UnsafeWorldCell's method don't use or respect this memory access pattern (world_mut is a special case). They just create and encapsulate &World references and provide restricted access. It's fine for now though since it's private and unsafe, but I think we should refactor the rest of UnsafeWorldCell to use this memory access pattern, and probably remove world_metadata since it's possible to access metadata safely through provided methods.

Originally posted by @JoJoJet in #10756 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-Code-QualityA section of code that is hard to understand or changeD-ComplexQuite challenging from either a design or technical perspective. Ask for help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions