Nebula
Interest

FocusHintDecision

What the server decided about one incoming focus hint: which mode to treat it in, and the point itself (a policy may move it — snap an RTS camera to the territory it is allowed to watch, say).

generated from the sources
public struct FocusHintDecision

What the server decided about one incoming focus hint: which mode to treat it in, and the point itself (a policy may move it — snap an RTS camera to the territory it is allowed to watch, say). A struct, so policy evaluation allocates no additional memory.

Fields

Mode

public FocusMode Mode;

How the point is treated. FocusMode.Disabled drops the hint entirely.

X, Y, Z

public double X, Y, Z;

The hinted point in absolute world coordinates, as the client sent it or as the policy moved it.

Methods

Reject

public static FocusHintDecision Reject();

Ignore this hint.

Anywhere

public static FocusHintDecision Anywhere(double x, double y, double z);

Accept this point as sent, wherever it is (FocusMode.Free).

NearPawn

public static FocusHintDecision NearPawn(double x, double y, double z);

Accept this point, clamped to InterestSettings.HintMaxDistance of the pawn.

On this page