Skip to content

Add a sane and clear extension API #67

Description

@fingolfin

Right now sglppow and SOTGrps "hack" into the smallgrp internals in order to extend it with additional layers.

This works, but is brittle, and highly non-trivial to do for 3rd parties who may wish to provide similar extensions. It also introduces questions about order dependence (i.e. if sglppow is loaded before or after SOTgrps may affect in which "layer" they go) that are difficult to resolve in the current setup.

It would be good to have a sane API for adding "layers". This could even be used by the "internal" layers, which are currently interwoven quite a bit.

Then the ordering problem could be handled by e.g. allowing to assign priorities to layers; as long as sotgrp and sglppow use different ones (mutually agreed) their loading order becomes irrelevant (granted, it probably is already because they don't overlap; but other extensions may not...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions