Skip to content

Refactor Store to expose .prototype #276

@rougeayrn

Description

@rougeayrn

Brief Description

Expose store.prototype to allow for easy addition of player-defined properties to store game objects.

Sample code

Reference Traxus' example workaround here, though obviously should not be used as the solution.

Does work in Javascript:

Object.defineProperty(Store.prototype, "contents", {
    get() {
        Object.entries(this);
    },
    enumerable: false,
    configurable: true
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions