rattle-parent
0.1.1-SNAPSHOT
jvm
rattle-common
/
io.github.aecsocket.rattle.impl
/
RattlePlatform
Rattle
Platform
abstract
class
RattlePlatform
(
val
rattle
:
RattleHook
)
A container for a single server's physics state, providing access to world physics.
Members
Constructors
Rattle
Platform
Link copied to clipboard
constructor
(
rattle
:
RattleHook
)
Types
On
Pre
Step
Link copied to clipboard
data
class
OnPreStep
(
val
dt
:
Double
)
Properties
engine
Timings
Link copied to clipboard
val
engineTimings
:
TimestampedList
<
Long
>
is
Stepping
Link copied to clipboard
val
isStepping
:
Boolean
on
Pre
Step
Link copied to clipboard
val
onPreStep
:
EventDispatch
<
RattlePlatform.OnPreStep
>
rattle
Link copied to clipboard
val
rattle
:
RattleHook
timescale
Link copied to clipboard
var
timescale
:
Double
worlds
Link copied to clipboard
abstract
val
worlds
:
Iterable
<
World
>
Functions
as
Player
Link copied to clipboard
abstract
fun
asPlayer
(
sender
:
CommandSource
)
:
RattlePlayer
?
destroy
Link copied to clipboard
fun
destroy
(
)
has
Physics
Link copied to clipboard
fun
hasPhysics
(
world
:
World
)
:
Boolean
key
Link copied to clipboard
abstract
fun
key
(
world
:
World
)
:
Key
load
Link copied to clipboard
fun
load
(
)
on
Tick
Link copied to clipboard
open
fun
onTick
(
)
physics
Or
Create
Link copied to clipboard
abstract
fun
physicsOrCreate
(
world
:
World
)
:
Sync
<
out
WorldPhysics
>
physics
Or
Null
Link copied to clipboard
abstract
fun
physicsOrNull
(
world
:
World
)
:
Sync
<
out
WorldPhysics
>
?
set
Player
Draw
Link copied to clipboard
abstract
fun
setPlayerDraw
(
player
:
RattlePlayer
,
draw
:
RattlePlayer.Draw
?
)