Rotation Manager
A rotation manager
Properties
The rotation that was already sent to the server and is currently active. The value is not being written by the packets, but we gather the Rotation from the last yaw and pitch variables from our player instance handled by the sendMovementPackets() function.
The rotation we want to aim at. This DOES NOT mean that the server already received this rotation.
Get the related CoroutineScope of receiver EventListener.
Track rotation changes
Returns whether the listenable is running or not, this is based on the parent listenable and if no parent is present, it will return the opposite of isDestructed.
Functions
Children EventListener
Returns computed ReadWriteProperty based on the accumulator of specific event.
Checks if the rotation is allowed to be updated
Parent EventListener
Remove cached scope and cancel it.
Registers an event hook for events of type T and launches a sequence
Start a Job on event.
Registers a repeatable sequence which repeats the execution of code on GameTickEvent.
Unregisters the event handler from the manager. This decision is FINAL! After the class was unregistered we cannot restore the handlers.
Wrap the original interceptor and make it auto-detect the listener's running state at suspension to determine whether to resume the continuation.