ObjDel

class ObjDel : ZoneProt

Obj del packets are used to delete an existing obj from the build area, assuming it exists in the first place.

Constructors

Link copied to clipboard
constructor(id: Int, quantity: 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 delete. Note that the client does bitwise-and on the id to cap it to the lowest 15 bits, meaning the maximum id that can be transmitted is 32767.

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

the quantity of the obj to be deleted. If there is no obj with this quantity, nothing will be deleted.

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