Table of Contents

Class WorldIconManager

Namespace
Uncreated.Warfare.Interaction.Icons
Assembly
Uncreated.Warfare.dll
public class WorldIconManager : ILayoutHostedService, IEventListener<PlayerLeft>, IEventListener<PlayerTeamChanged>, IDisposable
Inheritance
WorldIconManager
Implements
Inherited Members

Constructors

WorldIconManager(IPlayerService, ILogger<WorldIconManager>)

public WorldIconManager(IPlayerService playerService, ILogger<WorldIconManager> logger)

Parameters

playerService IPlayerService
logger ILogger<WorldIconManager>

Fields

DefaultTickSpeed

public const float DefaultTickSpeed = 1

Field Value

float

Methods

CreateIcon(WorldIconInfo)

Creates a new icon of a given type.

public void CreateIcon(WorldIconInfo icon)

Parameters

icon WorldIconInfo

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

RemoveAllIcons()

Removes all icons from the world.

public void RemoveAllIcons()

RemoveIcon(WorldIconInfo)

Removes a single icon.

public void RemoveIcon(WorldIconInfo icon)

Parameters

icon WorldIconInfo

UpdateAllIcons()

Updates all icons instantly.

public void UpdateAllIcons()

UpdateIcon(Guid)

Respawns all icons of a given type.

public void UpdateIcon(Guid guid)

Parameters

guid Guid

Respawns all icons of a given type.

public void UpdateIcon(IAssetLink<EffectAsset> asset)

Parameters

asset IAssetLink<EffectAsset>