mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-07-14 07:55:07 +00:00
modifications to packet before merging
This commit is contained in:
parent
7052f13191
commit
f081e40f70
1 changed files with 6 additions and 4 deletions
|
|
@ -11,8 +11,10 @@ import scodec.codecs._
|
||||||
* The hotbar contains eight slots for user shortcuts - medkits, implants, and text macros.
|
* The hotbar contains eight slots for user shortcuts - medkits, implants, and text macros.
|
||||||
* Next to the first slot are up and down arrow buttons with a number.
|
* Next to the first slot are up and down arrow buttons with a number.
|
||||||
* By progressing through the options available from the arrows, eight sets of eight shortcut slots are revealed.
|
* By progressing through the options available from the arrows, eight sets of eight shortcut slots are revealed.
|
||||||
* Which set is visible determines the effect of the activating the respective of eight binding keys (the Function keys) for the hotbar.
|
* Which set is visible determines the effect of the respective binding keys (the Function keys) for the hotbar.
|
||||||
* Each set is called a "bank."
|
* Each set is called a "bank," obviously.<br>
|
||||||
|
* <br>
|
||||||
|
* This packet coordinates the bank number both as an upstream and as a downstream packet.
|
||||||
* @param player_guid the player
|
* @param player_guid the player
|
||||||
* @param bank the shortcut bank (zero-indexed);
|
* @param bank the shortcut bank (zero-indexed);
|
||||||
* 0-7 are the valid banks
|
* 0-7 are the valid banks
|
||||||
|
|
@ -28,6 +30,6 @@ final case class ChangeShortcutBankMessage(player_guid : PlanetSideGUID,
|
||||||
object ChangeShortcutBankMessage extends Marshallable[ChangeShortcutBankMessage] {
|
object ChangeShortcutBankMessage extends Marshallable[ChangeShortcutBankMessage] {
|
||||||
implicit val codec : Codec[ChangeShortcutBankMessage] = (
|
implicit val codec : Codec[ChangeShortcutBankMessage] = (
|
||||||
("player_guid" | PlanetSideGUID.codec) ::
|
("player_guid" | PlanetSideGUID.codec) ::
|
||||||
("bank" | uintL(4))
|
("bank" | uint4L)
|
||||||
).as[ChangeShortcutBankMessage]
|
).as[ChangeShortcutBankMessage]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue