Working on using new data model

This commit is contained in:
2025-06-04 05:33:51 +02:00
parent ff1d95edab
commit 6e72582d77
13 changed files with 734 additions and 390 deletions

View File

@@ -88,14 +88,12 @@ func isRamType(size int, unit string) bool {
}
func formatType(t string) string {
switch t {
case "ram":
return "Random Access Memory"
case "hdd":
return "Hard Disk Drive"
default:
return t
for _, assetType := range DescriptorTree.AssetTypes {
if assetType.Id == t {
return assetType.Name
}
}
panic("unknown type")
}
type SelectMenu struct {