/// <inheritdoc /> public override Task OnHandleMessage(IProxiedMessageContext <GamePacketPayload, GamePacketPayload> context, SMSG_COMPRESSED_UPDATE_OBJECT_Payload_Vanilla payload) { UpdateBlockCollection collection = UpdateBlockConverter.Convert(payload.UpdateBlocks); //Once the blocks are rebuilt we can send the packet off on its way return(context.ProxyConnection.SendMessage(new SMSG_COMPRESSED_UPDATE_OBJECT_Payload(collection))); }
public SMSG_UPDATE_OBJECT_Payload([NotNull] UpdateBlockCollection updateBlocks) { UpdateBlocks = updateBlocks ?? throw new ArgumentNullException(nameof(updateBlocks)); }