PacketBase
Namespace Mc.Scripting · Kind class (abstract)
public abstract class PacketBaseBase 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.
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
PacketBase() |
Constructor
Section titled “Constructor”protected PacketBase()Properties
Section titled “Properties”| Member | Description |
|---|---|
abstract int PacketIndex { get; } |
The packet’s index in the engine’s catalogue (its class has the constant Index). |
PacketIndex
Section titled “PacketIndex”public abstract int PacketIndex { get; }The packet’s index in the engine’s catalogue (its class has the constant Index).