Adding modding folder with a hacked build.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user