Skip to content

package editor_workspace_registry

import "kaijuengine.com/editor/editor_workspace_registry"

Functions

All

func All() []editor_workspace.Workspace

All returns every registered workspace in the order they were registered. The editor's reconciliation logic uses this order as the default for workspaces that have no entry in persisted settings yet.

Get

func Get(id string) (editor_workspace.Workspace, bool)

Get returns the workspace registered under the given id, or false.

IDs

func IDs() []string

IDs returns every registered workspace id in registration order.

Register

func Register(w editor_workspace.Workspace)

Register adds a workspace to the registry. It is intended to be called from the package init() of every workspace (built-in or plugin). Duplicate IDs are logged and ignored.