Documentation ¶
Overview ¶
Package hsstate contains structs that describe the state of the application. This allows us to save the state of the application to a file when exited, and then re-load the state when the application is opened again.
Index ¶
Constants ¶
View Source
const ( ToolWindowTypeMPQExplorer = ToolWindowType("MPQ Explorer") ToolWindowTypeProjectExplorer = ToolWindowType("Project Explorer") ToolWindowTypeConsole = ToolWindowType("Console") )
ToolWindows types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppState ¶
type AppState struct { ProjectPath string `json:"projectPath"` EditorWindows []EditorState `json:"editorWindows"` ToolWindows []ToolWindowState `json:"toolWindows"` }
AppState holds information related to the running state of HellSpawner.
type EditorState ¶
type EditorState struct { WindowState Path []byte `json:"path"` // this gets exported as raw JSON to prevent an import loop Encoded []byte `json:"state"` }
EditorState holds information about the state of an open editor
type ToolWindowState ¶
type ToolWindowState struct { Type ToolWindowType `json:"type"` WindowState }
ToolWindowState holds information about tool windows (e.g. MPQ Explorer)
Click to show internal directories.
Click to hide internal directories.