Skip to content

package editor_plugin

import "kaiju/editor/editor_plugin"

Functions

CreatePluginProject

func CreatePluginProject(path string) error

IsPluginFolder

func IsPluginFolder(path string) bool

PluginsFolder

func PluginsFolder() (string, error)

UpdatePluginConfigState

func UpdatePluginConfigState(info PluginInfo) error

Types

EditorInterface

interface

type EditorInterface interface {
    Host() *engine.Host
    BlurInterface()
    FocusInterface()
    Settings() *editor_settings.Settings
    Events() *editor_events.EditorEvents
    History() *memento.History
    Project() *project.Project
    ProjectFileSystem() *project_file_system.FileSystem
    StageView() *editor_stage_view.StageView
}

EditorPlugin

interface

type EditorPlugin interface {
    Launch(EditorInterface) error
}

PluginConfig

struct

type PluginConfig struct {
    Name        string
    PackageName string
    Description string
    Version     float64
    Author      string
    Website     string
    Enabled     bool
}

PluginInfo

struct

type PluginInfo struct {
    Path   string
    Config PluginConfig
}

AvailablePlugins

func AvailablePlugins() []PluginInfo