Skip to content

Proxy Object for Easily Obtaining Component IDs #7

@zicklag

Description

@zicklag

Currently it's a little bit wordy to get component IDs:

let ballId = world.components.find(info => info.name == "breakout::Ball").id;

It would be cool if we could leverage a JS Proxy to let you do this:

let ballId = world.components.breakout.Ball.id;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions