Skip to content

Add hook and extension variables features #571

@Trokkin

Description

@Trokkin

I'd wanted to see any of these new possibilities in Wurst. I believe they're very helpful in some rare occasions to keep code clean and well-organized, at least for me.
For extension variables I mean something like UnitWrapper ... int UnitWrapper.killCount ... u.killCount += 1 as an example. I think that their initialization can be hooked to construct and onDestroy (like hook UnitWrapper.construct /n/t killCount = 0 for my example). And I mean they're restricted to class types only.
Probably they could be allowed only with special flags like hookable and extensible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions