Class/Object

net.psforever.packet.game

CreateShortcutMessage

Related Docs: object CreateShortcutMessage | package game

Permalink

final case class CreateShortcutMessage(player_guid: PlanetSideGUID, slot: Int, unk: Int, addShortcut: Boolean, shortcut: Option[Shortcut] = None) extends PlanetSideGamePacket with Product with Serializable

Facilitate a quick-use button for the hotbar.

The hotbar is the eight quick-use slots along the bottom center of the HUD. Each of these slots is the application of a medkit, or use of an implant, or repetition of a text macro. There are actually sixty-four of these slots, eight bound to the Function keys depending on which set is selected.

When addShortcut is true, the provided Shortcut will be defined and attached to the respective hotbar slot indicated by slot. If it is false, the given slot will be unbound. Nothing happens if the slot selection is invalid.

This packet coordinates the shortcut both as an upstream and as a downstream packet, leaning heavily towards the latter. An interesting application is that, if the user does not already have a medkit or a medkit shortcut; but, if he places a medkit in his inventory, the shortcut will be automatically added to his hotbar. This, in turn, dispatches a packet informing the server. The prior functionality will rarely be appreciated, however, as players rarely never have their medkit shortcut unbound.

player_guid

the player

slot

the hotbar slot number (one-indexed)

unk

na; always zero?

addShortcut

true, if we are adding a shortcut; false, if we are removing any current shortcut

shortcut

optional; details about the shortcut to be created

Source
CreateShortcutMessage.scala
See also

ChangeShortcutBankMessage

Linear Supertypes
Product, Equals, PlanetSideGamePacket, PlanetSidePacket, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CreateShortcutMessage
  2. Product
  3. Equals
  4. PlanetSideGamePacket
  5. PlanetSidePacket
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CreateShortcutMessage(player_guid: PlanetSideGUID, slot: Int, unk: Int, addShortcut: Boolean, shortcut: Option[Shortcut] = None)

    Permalink

    player_guid

    the player

    slot

    the hotbar slot number (one-indexed)

    unk

    na; always zero?

    addShortcut

    true, if we are adding a shortcut; false, if we are removing any current shortcut

    shortcut

    optional; details about the shortcut to be created

Type Members

  1. type Packet = CreateShortcutMessage

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to any2stringadd[CreateShortcutMessage] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (CreateShortcutMessage, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to ArrowAssoc[CreateShortcutMessage] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. val addShortcut: Boolean

    Permalink

    true, if we are adding a shortcut; false, if we are removing any current shortcut

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def encode: Attempt[BitVector]

    Permalink
  10. def ensuring(cond: (CreateShortcutMessage) ⇒ Boolean, msg: ⇒ Any): CreateShortcutMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to Ensuring[CreateShortcutMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (CreateShortcutMessage) ⇒ Boolean): CreateShortcutMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to Ensuring[CreateShortcutMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): CreateShortcutMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to Ensuring[CreateShortcutMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): CreateShortcutMessage

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to Ensuring[CreateShortcutMessage] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to StringFormat[CreateShortcutMessage] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def opcode: GamePacketOpcode.Value

    Permalink
  23. val player_guid: PlanetSideGUID

    Permalink

    the player

  24. val shortcut: Option[Shortcut]

    Permalink

    optional; details about the shortcut to be created

  25. val slot: Int

    Permalink

    the hotbar slot number (one-indexed)

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. val unk: Int

    Permalink

    na; always zero?

  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def [B](y: B): (CreateShortcutMessage, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from CreateShortcutMessage to ArrowAssoc[CreateShortcutMessage] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Product

Inherited from Equals

Inherited from PlanetSideGamePacket

Inherited from PlanetSidePacket

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from CreateShortcutMessage to any2stringadd[CreateShortcutMessage]

Inherited by implicit conversion StringFormat from CreateShortcutMessage to StringFormat[CreateShortcutMessage]

Inherited by implicit conversion Ensuring from CreateShortcutMessage to Ensuring[CreateShortcutMessage]

Inherited by implicit conversion ArrowAssoc from CreateShortcutMessage to ArrowAssoc[CreateShortcutMessage]

Ungrouped