net.psforever.packet.game.objectcreate
Performs a "sizeof()" analysis of the given object.
The calculation reflects the scodec Codec
definition rather than the explicit parameter fields.
Performs a "sizeof()" analysis of the given object.
The calculation reflects the scodec Codec
definition rather than the explicit parameter fields.
For example, a traditional Int
is normally a 32-bit number, often rendered as a 32u
number.
When parsed with a uintL(7)
, it's length will be considered 7 bits (7u
).
(Note: being permanently signed, an scodec
value of 32u
or longer must fit into a Long
type.)
the number of bits necessary to measure an object of this class;
defaults to 0L
The base type for the representation of any data used to produce objects from
ObjectCreateMessage
packet data. There is no reason to instantiate this class as-is. Children of this class are expected to be able to translate throughscodec
operations into packet data.The object data is uncoupled from the object class as multiple classes use the same format for their data. For example, both the Suppressor and the Gauss will use a "weapon data" format. For example, both 9mm bullets and energy cells will use an "ammunition data" format.