Adding modding folder with a hacked build.
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package object
|
||||
|
||||
import "fmt"
|
||||
|
||||
// PhysicsModel defines how an object can interact with the world.
|
||||
type PhysicsModel byte
|
||||
|
||||
// String returns the textual representation of the value.
|
||||
func (model PhysicsModel) String() string {
|
||||
if int(model) >= len(physicsModelNames) {
|
||||
return fmt.Sprintf("Unknown 0x%02X", int(model))
|
||||
}
|
||||
return physicsModelNames[model]
|
||||
}
|
||||
|
||||
// PhysicsModel constants.
|
||||
const (
|
||||
PhysicsModelInsubstantial PhysicsModel = 0
|
||||
PhysicsModelRegular PhysicsModel = 1
|
||||
PhysicsModelStrange PhysicsModel = 2
|
||||
)
|
||||
|
||||
var physicsModelNames = []string{
|
||||
"Insubstantial",
|
||||
"Regular",
|
||||
"Strange",
|
||||
}
|
||||
|
||||
// PhysicsModels returns all known constants.
|
||||
func PhysicsModels() []PhysicsModel {
|
||||
return []PhysicsModel{
|
||||
PhysicsModelInsubstantial, PhysicsModelRegular, PhysicsModelStrange,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user