Table of Contents

Class LayerController

Namespace
Root
Assembly
SPZGameAssembly.dll
public abstract class LayerController : ILayerController
Inheritance
object
LayerController
Implements
Derived
Extension Methods

Constructors

LayerController(LayerControllerConfiguration, Viewport, IViewportLayersController, IUISoundPlayer, IEventSender, Player, IAnalyticsTracker, IPlayerInteractionStateManager, ITutorialState)

protected LayerController(LayerControllerConfiguration config, Viewport viewport, IViewportLayersController viewportLayersController, IUISoundPlayer uiSoundPlayer, IEventSender passiveEventBus, Player player, IAnalyticsTracker analyticsTracker, IPlayerInteractionStateManager interactionState, ITutorialState tutorialState)

Parameters

config LayerControllerConfiguration
viewport Viewport
viewportLayersController IViewportLayersController
uiSoundPlayer IUISoundPlayer
passiveEventBus IEventSender
player Player
analyticsTracker IAnalyticsTracker
interactionState IPlayerInteractionStateManager
tutorialState ITutorialState

Fields

InteractionState

protected readonly IPlayerInteractionStateManager InteractionState

Field Value

IPlayerInteractionStateManager

QueuedCurrentLayer

protected short QueuedCurrentLayer

Field Value

short

Viewport

protected readonly Viewport Viewport

Field Value

Viewport

ViewportLayersController

protected readonly IViewportLayersController ViewportLayersController

Field Value

IViewportLayersController

Properties

BaseLayer

protected abstract short BaseLayer { get; }

Property Value

short

CurrentLayer

protected abstract short CurrentLayer { get; set; }

Property Value

short

MaxUnlockedLayer

protected abstract short MaxUnlockedLayer { get; }

Property Value

short

MinUnlockedLayer

protected abstract short MinUnlockedLayer { get; }

Property Value

short

ShowAllLayers

protected abstract bool ShowAllLayers { get; set; }

Property Value

bool

TemporarilyDisableChanges

public abstract bool TemporarilyDisableChanges { get; set; }

Property Value

bool

TutorialSwitchDownFlag

protected abstract TutorialFlag TutorialSwitchDownFlag { get; }

Property Value

TutorialFlag

TutorialSwitchUpFlag

protected abstract TutorialFlag TutorialSwitchUpFlag { get; }

Property Value

TutorialFlag

Methods

ApplyForget()

protected virtual void ApplyForget()

GoLayerDown(bool)

public bool GoLayerDown(bool fromInput)

Parameters

fromInput bool

Returns

bool

GoLayerUp(bool)

public bool GoLayerUp(bool fromInput)

Parameters

fromInput bool

Returns

bool

IsActiveDuringState(PlayerInteractionBaseState, bool)

public abstract bool IsActiveDuringState(PlayerInteractionBaseState interactionState, bool placingAnything)

Parameters

interactionState PlayerInteractionBaseState
placingAnything bool

Returns

bool

IsOtherKeybindsActiveDuringState(PlayerInteractionBaseState, bool)

protected abstract bool IsOtherKeybindsActiveDuringState(PlayerInteractionBaseState interactionState, bool isPlacingAnything)

Parameters

interactionState PlayerInteractionBaseState
isPlacingAnything bool

Returns

bool

LayerDownInternal()

protected virtual bool LayerDownInternal()

Returns

bool

LayerUpInternal()

protected virtual bool LayerUpInternal()

Returns

bool

OnActive()

protected virtual void OnActive()

OnGameUpdate(InputDownstreamContext)

public void OnGameUpdate(InputDownstreamContext context)

Parameters

context InputDownstreamContext

OnInactive()

protected virtual void OnInactive()

RequestLayerChange(short)

public bool RequestLayerChange(short layer)

Parameters

layer short

Returns

bool

RequestLayerVisibility(bool)

public bool RequestLayerVisibility(bool allLayersVisible)

Parameters

allLayersVisible bool

Returns

bool

UpdateTick()

protected virtual void UpdateTick()