Interest
FocusMode
How much of the world a client's own ClientFocusHintMsg may move its interest to.
generated from the sources
Enum in namespace
Nebula · Packages/com.1by3.nebula/Runtime/Interest/InterestPolicy.cspublic enum FocusMode : byteHow much of the world a client's own ClientFocusHintMsg may move its interest to. It is server state — set with NebulaGateway.SetClientFocusMode or by an IFocusHintPolicy — and never travels from the client, because a client that could widen its own view would be a client that can see through walls by asking politely. Instance isolation applies in every mode: a free focus is a bigger view of the world the client is already in, not a way out of it.
Members
| Name | Value | Description |
|---|---|---|
PawnClamped | 0 | The default. A hint is honored only from a client that has a pawn, and is clamped to InterestSettings.HintMaxDistance of it. A pawn-less client's hint is ignored, so connecting without a body is not a way to look anywhere in the world. |
Free | 1 | The hint is taken as sent, anywhere in the world: an RTS or commander camera, a spectator, a replay viewer. A pawn-less client may hold this mode; the server is the one that decided so. |
Disabled | 2 | Hints from this client are ignored altogether, pawn or no pawn. |