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
@@ -0,0 +1,31 @@
package texture_test
import (
"testing"
"github.com/inkyblackness/hacked/ss1/content/texture"
"github.com/stretchr/testify/assert"
)
func TestTransparencyControlString(t *testing.T) {
tt := []struct {
ctrl texture.TransparencyControl
expected string
}{
{ctrl: texture.TransparencyControlRegular, expected: "Regular"},
{ctrl: texture.TransparencyControlSpace, expected: "Space"},
{ctrl: texture.TransparencyControlSpaceBackground, expected: "SpaceBackground"},
{ctrl: 0x80, expected: "Unknown80"},
}
for _, tc := range tt {
result := tc.ctrl.String()
assert.Equal(t, tc.expected, result)
}
}
func TestTransparencyControls(t *testing.T) {
controls := texture.TransparencyControls()
assert.Equal(t, 3, len(controls))
}