Nebula
Containers

PortalAsker

Who is asking a portal query (docs/portals.md D12, D32): the entity whose own colliders the cast skips, and the party whose link it goes through.

generated from the sources
public readonly struct PortalAsker

Who is asking a portal query (docs/portals.md D12, D32): the entity whose own colliders the cast skips, and the party whose link it goes through. A face with several parties' links casts into the asker's party's far scope. With no party named, the entity's party is its Portal.PartyOf (by default its owner's identity); with neither, the face's one open link, when there is exactly one.

Properties

Entity

public NetworkIdentity Entity { get; }

The asking entity, whose colliders a cast does not hit; null for none.

Party

public string Party { get; }

The party named explicitly; null when it is to be derived from Entity.

HasParty

public bool HasParty { get; }

Whether a party was named.

None

public static PortalAsker None { get; }

Nobody in particular: the face's one open link, when there is exactly one.

Methods

Of

public static PortalAsker Of(NetworkIdentity entity);

An entity asking: its colliders are skipped and its party chooses the link.

OfParty

public static PortalAsker OfParty(string party, NetworkIdentity entity = null);

A party asking, whether or not an entity is behind it (a turret, a spell, a sound): entity, when given, is the one whose colliders are skipped.

On this page