Table of Contents

Interface IPlayerComponent

Namespace
Uncreated.Warfare.Players
Assembly
Uncreated.Warfare.dll

Component auto-added to players on join and destroyed on disconnect.

public interface IPlayerComponent

Remarks

Player components can receive events, but any IPlayerEvent args will only be received if they're about the player that owns the component.

Properties

Player

WarfarePlayer Player { get; set; }

Property Value

WarfarePlayer

Methods

Init(IServiceProvider, bool)

This function is called on player join and after every layout starts (to re-initialize scoped services).

void Init(IServiceProvider serviceProvider, bool isOnJoin)

Parameters

serviceProvider IServiceProvider
isOnJoin bool

The player just joined and this isn't called as the result of a new layout.