Skip to content

package content_workspace

import "kaijuengine.com/editor/editor_workspace/content_workspace"

Constants

ID

is

the

stable

workspace

identifier

used

for

registration

settings

and

SelectWorkspace

calls

ID

"content"

DisplayName

is

the

label

shown

on

the

content

workspace

bar

tab

DisplayName

"Content"

Functions

ImportPaths

func ImportPaths(paths []string, pfs *project_file_system.FileSystem, cache *content_database.Cache) []string

ImportPaths is shared by the content workspace and global file-drop routing.

ShouldHideContent

func ShouldHideContent(id string, typeFilters, tagFilters map[string]struct{}, cdb *content_database.Cache) bool

ShouldShowContent

func ShouldShowContent(query, id string, typeFilters, tagFilters map[string]struct{}, cdb *content_database.Cache) bool

Types

BatchedContentLoader

struct

type BatchedContentLoader struct {
    // Has unexported fields.
}

BatchedContentLoader.Configure

func (l *BatchedContentLoader) Configure(host *engine.Host, batchSize int, process func([]string))

BatchedContentLoader.Enqueue

func (l *BatchedContentLoader) Enqueue(ids []string)

BatchedContentLoader.Stop

func (l *BatchedContentLoader) Stop()

ContentAudioView

struct

type ContentAudioView struct {
    // Has unexported fields.
}

ContentWorkspace

struct

type ContentWorkspace struct {
    common_workspace.CommonWorkspace

    // Has unexported fields.
}

ContentWorkspace.Close

func (w *ContentWorkspace) Close()

ContentWorkspace.DisplayName

func (w *ContentWorkspace) DisplayName() string

ContentWorkspace.Hotkeys

func (w *ContentWorkspace) Hotkeys() []common_workspace.HotKey

ContentWorkspace.ID

func (w *ContentWorkspace) ID() string

ContentWorkspace.Initialize

func (w *ContentWorkspace) Initialize(ed editor_workspace.WorkspaceEditorInterface) error

ContentWorkspace.IsRequired

func (w *ContentWorkspace) IsRequired() bool

ContentWorkspace.Open

func (w *ContentWorkspace) Open()

ContentWorkspace.Shutdown

func (w *ContentWorkspace) Shutdown()

Shutdown is called when the editor disables this workspace at runtime. It drops the UI document. (Event subscriptions are not currently tracked for removal — the editor process owns the EditorEvents lifetime so leaked subscriptions are harmless until restart. Add explicit Remove calls if disabling/re-enabling within a session becomes a hot path.)

ContentWorkspace.Update

func (w *ContentWorkspace) Update(deltaTime float64)

WorkspaceUIData

struct

type WorkspaceUIData struct {
    Filters map[string]int
    Tags    map[string]int
}

WorkspaceUIData.SetupUIData

func (w *WorkspaceUIData) SetupUIData(cdb *content_database.Cache) []string