Skip to content

PacketBase

Namespace Mc.Scripting · Kind class (abstract)

public abstract class PacketBase

Base of every typed packet (the generated classes derive from it). The wire form is the packet’s fields in declaration order; the engine decodes and validates them (src/scripting/ipc/packets.g.cpp). Plugins read and write the public fields.

Member Description
PacketBase()
protected PacketBase()
Member Description
abstract int PacketIndex { get; } The packet’s index in the engine’s catalogue (its class has the constant Index).
public abstract int PacketIndex { get; }

The packet’s index in the engine’s catalogue (its class has the constant Index).