feat: add core types and styles for Tier management

This commit is contained in:
Stevan Freeborn
2025-12-29 12:47:37 -06:00
parent 8be1bbb80b
commit 70e900cf4c
2 changed files with 82 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package core
import "github.com/charmbracelet/lipgloss"
type Item string
type Tier struct {
Name string
Items []Item
Color lipgloss.Color
}
type SaveState struct {
Tiers []struct {
Name string `json:"name"`
Items []Item `json:"items"`
} `json:"tiers"`
}
type Saver interface {
Save(filename string, state SaveState) error
Load(filename string) (SaveState, error)
}