Skip to content

Standardize Feature and Sub-Feature VContainer Registration Schema #6

Description

@Bitstachio

Background

There is currently an architectural inconsistency regarding how sub-features are registered across different feature modules using VContainer.

Two conflicting patterns are currently competing in the codebase:

  1. Mono-Installer Pattern: A single main feature installer handles all sub-feature VContainer registrations internally.
  2. Multi-Installer Pattern: Each sub-feature has its own individual installer component that is physically attached to a GameObject within the scene.

Goal

Consolidate these approaches, establish a single, unified architectural schema for feature/sub-feature composition, and consistently apply it across the entire codebase to eliminate scene clutter and improve dependency maintainability.

Solution (Updated)

Just create an installer for the sub-feature, but no need to call it in the main feature installer. Instead, place the sub-feature installer in the feature installers hierarchy, which will get picked up recursively. Refer to stat display installers as an example.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions