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,32 @@
package object_test
import (
"fmt"
"testing"
"github.com/stretchr/testify/assert"
"github.com/inkyblackness/hacked/ss1/content/object"
)
func TestPhysicsModels(t *testing.T) {
assert.Equal(t, 3, len(object.PhysicsModels()))
}
func TestPhysicsModelString(t *testing.T) {
tt := []struct {
model object.PhysicsModel
expected string
}{
{model: object.PhysicsModelInsubstantial, expected: "Insubstantial"},
{model: object.PhysicsModelRegular, expected: "Regular"},
{model: object.PhysicsModelStrange, expected: "Strange"},
{model: object.PhysicsModel(255), expected: "Unknown 0xFF"},
}
for _, tc := range tt {
result := tc.model.String()
assert.Equal(t, tc.expected, result, fmt.Sprintf("Failed for 0x%02X", int(tc.model)))
}
}