Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
package edit
import (
"fmt"
"github.com/inkyblackness/hacked/ss1/resource"
"github.com/inkyblackness/hacked/ss1/world/ids"
)
// TextInfo describes one kind of text.
type TextInfo struct {
ID resource.ID
Title string
audioBase resource.ID
}
// TextInfoList is a set of TextInfo.
type TextInfoList []TextInfo
// ByID returns a text info for the given identifier.
func (list TextInfoList) ByID(id resource.ID) TextInfo {
for _, info := range list {
if info.ID == id {
return info
}
}
return TextInfo{
ID: id,
Title: fmt.Sprintf("??? %v", id),
}
}
// Title returns the title property of the identified info.
func (list TextInfoList) Title(id resource.ID) string {
return list.ByID(id).Title
}
var knownTexts = TextInfoList{
{ID: ids.TrapMessageTexts, Title: "Trap Messages", audioBase: ids.TrapMessagesAudioStart},
{ID: ids.WordTexts, Title: "Words"},
{ID: ids.LogCategoryTexts, Title: "Log Categories"},
{ID: ids.VariousMessageTexts, Title: "Various Messages"},
{ID: ids.ScreenMessageTexts, Title: "Screen Messages"},
{ID: ids.InfoNodeMessageTexts, Title: "Info Node Message Texts (8/5/6)"},
{ID: ids.AccessCardNameTexts, Title: "Access Card Names"},
{ID: ids.DataletMessageTexts, Title: "Datalet Messages (8/5/8)"},
{ID: ids.PaperTextsStart, Title: "Papers"},
{ID: ids.PanelNameTexts, Title: "Panel Names"},
}
// KnownTexts returns a set of known texts.
func KnownTexts() TextInfoList {
return knownTexts
}