forked from SuperRicky14/TpaPlusPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor teleport request handler and tick loop
- Loading branch information
1 parent
a663377
commit c14dae7
Showing
28 changed files
with
416 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/main/kotlin/net/superricky/tpaplusplus/async/AsyncCommandEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package net.superricky.tpaplusplus.async | ||
|
||
enum class AsyncCommandEvent { | ||
REQUEST_AFTER_DELAY, // Command windup finish event, take effect | ||
REQUEST_UPDATE_MESSAGE, // windup message update event, show message to player | ||
REQUEST_CANCELED, // Teleport canceled | ||
REQUEST_OUT_DISTANCE, // Move too much, fail to execute command | ||
REQUEST_TIMEOUT, // Request out of time event | ||
REQUEST_UNDER_COOLDOWN, // command under cooldown event | ||
REQUEST_ACCEPTED, // teleport request accepted event | ||
REQUEST_NOT_FOUND, // can not find teleport request event | ||
TELEPORT_OUT_DISTANCE, // move too much when teleporting | ||
TELEPORT_UPDATE_MESSAGE, // teleport message update event, show message to player | ||
USELESS_VOID // Placeholders, useless return values | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
src/main/kotlin/net/superricky/tpaplusplus/async/AsyncCommandResult.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.