mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-20 23:44:04 +09:00
phys arguments are now single PhysProperties object
This commit is contained in:
33
src/net/torvald/terrarum/gameactors/PhysProperties.kt
Normal file
33
src/net/torvald/terrarum/gameactors/PhysProperties.kt
Normal file
@@ -0,0 +1,33 @@
|
||||
package net.torvald.terrarum.gameactors
|
||||
|
||||
data class PhysProperties(
|
||||
val immobileBody: Boolean,
|
||||
var usePhysics: Boolean,
|
||||
val useStairs: Boolean
|
||||
) {
|
||||
companion object {
|
||||
val HUMANOID_DEFAULT = PhysProperties(
|
||||
immobileBody = false,
|
||||
usePhysics = true,
|
||||
useStairs = true
|
||||
)
|
||||
/** e.g. dropped items, balls */
|
||||
val PHYSICS_OBJECT = PhysProperties(
|
||||
immobileBody = false,
|
||||
usePhysics = true,
|
||||
useStairs = false
|
||||
)
|
||||
/** e.g. voice maker */
|
||||
val IMMOBILE = PhysProperties(
|
||||
immobileBody = true,
|
||||
usePhysics = false,
|
||||
useStairs = false
|
||||
)
|
||||
/** e.g. camera */
|
||||
val MOBILE_OBJECT = PhysProperties(
|
||||
immobileBody = false,
|
||||
usePhysics = false,
|
||||
useStairs = false
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user