Skip to content

The future of the "WL" global utility variable #238

@HoeenCoder

Description

@HoeenCoder

Alot of side servers, including Wavelength, have a global varaible that acts as a holder for utility functions. This can be useful, though these variables are also used for other things at times that could be self contained in their chat-plugin files.

What I want to do with "WL" in this refactor is either A. replace it with a "Tools" global for utility functions that are used all over the server only or B. merge these utilities into Chat (or another appropriate variable like Dex).

You may be wondering, "Why not use Dex if we aren't going to use WL anymore?". Dex is more for sim ("pokedex") based tools, Dex.getTemplate gets a pokemon template, Dex.getAbility gets an ability, ect. Things like WL.nameColor don't make much sense there, especially since Dex is loaded in the battle processes and nameColor isn't used there (waste of memory).

I'm open to other suggestions and ideas, please reply and let me know what you think we should do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionTo discuss potential changes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions