Skip to content

Flatten MetaBuildings by removing variants #67

@SkimnerPhi

Description

@SkimnerPhi

The variants system for buildings currently adds more friction to modding than there ought to be. By removing variants, there are a few immediate benefits provided:

  • Existing buildings are easier to change, no need to replaceMethod multiple methods within the associated MetaBuilding
  • Existing buildings are easier to remove/hide
  • Toolbars are easier to modify, there's no longer a strict relationship between MetaBuildings and toolbar slots

The building registry should be changed to accept already-constructed MetaBuilding objects, to allow reuse of classes where applicable by way of constructor arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    user interfaceChanges in UI code such as states or HUD elements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions