swiftlys2/docs/api/releases/features/ai/
API Reference › Menu.Components

MenuPlayerRowContext

Struct
Namespace: SwiftlyS2.Shared.Menu.Components · Assembly: SwiftlyS2.CS2.dll
public readonly record struct MenuPlayerRowContext : IEquatable<MenuPlayerRowContext>
View source

Properties

Index

The position of the row among the listed players, from zero.

public required int Index { get; init; }
Property Value

IsFocused

Whether the row holds the selection.

public required bool IsFocused { get; init; }
Property Value

Player

The player who is looking at the menu.

public IPlayer Player { get; }
Property Value

Session

The session being drawn.

public required IMenuSession Session { get; init; }
Property Value

Target

The player the row stands for.

public required IPlayer Target { get; init; }
Property Value

Translate

Translates a key for the player who is looking at the menu.

public required Func<string, string> Translate { get; init; }
Property Value