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,18 @@
package objprop
import (
"github.com/inkyblackness/hacked/ss1/content/interpreters"
"github.com/inkyblackness/hacked/ss1/content/object"
)
// SpecificProperties returns an interpreter specific for the given object class and subclass.
func SpecificProperties(triple object.Triple, data []byte) *interpreters.Instance {
desc := specificDescriptions[triple]
if desc == nil {
desc = specificDescriptions[object.TripleFrom(int(triple.Class), int(triple.Subclass), anyObjectType)]
}
if desc == nil {
desc = interpreters.New()
}
return desc.For(data)
}