Skip to content
EvilEngine.Api.Selection

ISelections interface

public interface ISelections

Every player’s weapon selection in a session, as the server holds it: the layers set over it. The host sends each player their stack whenever it changes, and refuses the picks of a player whose selection is hidden or locked, so nothing here needs the client.

A Plugin reaches it through its context’s Selections, where its layers are named <id>:<name> for it and go when it unloads. just map-shot --selection-layer drives it too.

selections.Everyone.Set(new SelectionLayer("ctf:intro") { Locked = true });
selections.Of(holder)?.Set(new SelectionLayer("physgun") { Priority = SelectionLayer.Weapon, Scroll = false });
Assembly
EvilEngine.Api
Commit
4ff877b1

Members

Everyone property

ISelection Everyone { get; }

The selection every player shares. A layer set here sits under each player’s own of the same priority.

Of method

ISelection? Of(PlayerId player)

One player’s own selection, or null when that PlayerId isn’t connected. Their layers reach only them, and go when they leave.