ObjCount

class ObjCount : ZoneProt

Obj count is a packet used to update the quantity of an obj that's already spawned into the build area. This is only done for objs which are private to a specific user - doing so merges the stacks together into one rather than having two distinct stacks of the same item.

Constructors

Link copied to clipboard
constructor(id: Int, oldQuantity: Int, newQuantity: Int, xInZone: Int, zInZone: Int)

Properties

Link copied to clipboard
open override val category: ServerProtCategory
Link copied to clipboard
Link copied to clipboard
val id: Int

the id of the obj to merge

Link copied to clipboard

the new quantity to be set to this obj

Link copied to clipboard

the old quantity of the obj to find, if no obj by this quantity is found, this packet has no effect client-side

Link copied to clipboard
open override val protId: Int
Link copied to clipboard

the x coordinate of the obj within the zone it is in, a value in range of 0 to 7 (inclusive) is expected. Any bits outside that are ignored.

Link copied to clipboard

the z coordinate of the obj within the zone it is in, a value in range of 0 to 7 (inclusive) is expected. Any bits outside that are ignored.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun estimateSize(): Int
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String