UserIdEvent Class

Base class for multiplayer events that identify a user by index rather than by object reference.

Definition

Namespace: Alteruna.Multiplayer.EventArgument
Assembly: Alteruna (in Alteruna.dll) Version: 2.0.2+dcdb8fba58ad1eb99205b1dc6265fd5b3b7cf8ec
C#
public abstract class UserIdEvent : MultiplayerEvent
Inheritance
Object    MultiplayerEvent    UserIdEvent
Derived

Remarks

Stores the user's session index instead of a direct User reference. The User property performs a lazy lookup via GetUser each time it is accessed. Use UserIndex for performance-sensitive code where the full User object is not required.

Constructors

UserIdEvent Initializes a new instance of UserIdEvent.

Properties

User The user associated with this event, resolved from UserIndex on each access.

Fields

UserIndex The session-local index of the user associated with this event.

See Also