Nebula
Protocol

PortalAdjacencyMsg

MsgId.PortalAdjacency (docs/portals.md D30, D45): a link the sender drives, as a worker that holds the other side of its band needs it.

generated from the sources
public struct PortalAdjacencyMsg

MsgId.PortalAdjacency (docs/portals.md D30, D45): a link the sender drives, as a worker that holds the other side of its band needs it. The portal record carries the near face, the aperture and the band; the far face is the link's, which a template shares with the portal but a fixed far side may not. FarContainers are the containers of the far scope the far band touches, the relation that makes a body in the band of one face a ghost on the worker that owns the other. A removal withdraws it.

Fields

Removed

public bool Removed;

LinkId

public ulong LinkId;

Generation

public uint Generation;

State

public PortalState State;

FarScope

public ulong FarScope;

Portal

public PortalRecord Portal;

NearContainer

public ContainerRef NearContainer;

FarContainers

public List<ContainerRef> FarContainers;

FarRows

public List<ContainerRef> FarRows;

The other containers of the far scope the link's far window touches (docs/portals.md D16, D35), beyond the ones the band touches. A worker that owns only these is asked to prepare them but ghosts nothing for the link. A trailing field: an older body ends before it.

Methods

Write

public void Write(NetworkWriter w);

Read

public static PortalAdjacencyMsg Read(NetworkReader r);

Read the body after the id byte.

On this page