INNER CODE UNIT · Go

func

OpenDiablo2/HellSpawner · hsapp/app_state.go:12

func (a *App) State() hsstate.AppState {
	appState := hsstate.AppState{
		ProjectPath:   a.project.GetProjectFilePath(),
		EditorWindows: []hsstate.EditorState{},
		ToolWindows:   []hsstate.ToolWindowState{},
	}

	for _, editor := range a.editors {
		appState.EditorWindows = append(appState.EditorWindows, editor.State())
	}

	appState.ToolWindows = append(
		appState.ToolWindows,
		a.mpqExplorer.State(),
		a.projectExplorer.State(),
		a.console.State(),
	)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…