Table of Contents

Class ElectricalGridService

Namespace
Uncreated.Warfare.Zones
Assembly
Uncreated.Warfare.dll

Grid objects apply power to objects related to flags in the rotation.

For example, lights, gates in a parking lot, vending machines, etc may be enabled when the zone is objective or in rotation.

[Priority(-1000)]
public class ElectricalGridService : ILevelHostedService, IEventListener<FlagObjectiveChanged>, ILayoutHostedService
Inheritance
ElectricalGridService
Implements
Inherited Members

Constructors

ElectricalGridService(ILogger<ElectricalGridService>, WarfareModule, ZoneStore)

public ElectricalGridService(ILogger<ElectricalGridService> logger, WarfareModule module, ZoneStore zoneStore)

Parameters

logger ILogger<ElectricalGridService>
module WarfareModule
zoneStore ZoneStore

Properties

Enabled

public bool Enabled { get; }

Property Value

bool

Methods

LoadLevelAsync(CancellationToken)

Executes when the level finishes loading and all assets are loaded but before the first session starts.

public UniTask LoadLevelAsync(CancellationToken token)

Parameters

token CancellationToken

Returns

UniTask