Table of Contents

Class FogOfWarSystem

Namespace
Map.Rendering
Assembly
MapAssembly.dll

ENGINE LAYER - Manages fog of war visibility state Universal grand strategy fog of war mechanics:

  • Unexplored: Never seen (0.0)
  • Explored: Previously seen but not currently visible (0.5)
  • Visible: Currently owned or adjacent to owned (1.0)

Visual appearance (colors, effects) is defined by GAME layer shaders

public class FogOfWarSystem : MonoBehaviour
Inheritance
object
FogOfWarSystem

Methods

GetActiveFogOfWarRenderer(string)

Get the active fog of war renderer from registry.

public IFogOfWarRenderer GetActiveFogOfWarRenderer(string rendererId = null)

Parameters

rendererId string

Returns

IFogOfWarRenderer

Initialize(ProvinceQueries, int)

Initialize fog of war system

public void Initialize(ProvinceQueries queries, int maxProvinces)

Parameters

queries ProvinceQueries
maxProvinces int

RevealProvince(ushort)

Reveal a specific province (mark as explored)

public void RevealProvince(ushort provinceID)

Parameters

provinceID ushort

SetPlayerCountry(ushort)

Set the player's country and update visibility

public void SetPlayerCountry(ushort countryID)

Parameters

countryID ushort

UpdateVisibility()

Update visibility based on player's current ownership Marks owned provinces and adjacent provinces as visible

public void UpdateVisibility()