Class FogOfWarSystem
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
-
objectFogOfWarSystem
Methods
GetActiveFogOfWarRenderer(string)
Get the active fog of war renderer from registry.
public IFogOfWarRenderer GetActiveFogOfWarRenderer(string rendererId = null)
Parameters
rendererIdstring
Returns
Initialize(ProvinceQueries, int)
Initialize fog of war system
public void Initialize(ProvinceQueries queries, int maxProvinces)
Parameters
queriesProvinceQueriesmaxProvincesint
RevealProvince(ushort)
Reveal a specific province (mark as explored)
public void RevealProvince(ushort provinceID)
Parameters
provinceIDushort
SetPlayerCountry(ushort)
Set the player's country and update visibility
public void SetPlayerCountry(ushort countryID)
Parameters
countryIDushort
UpdateVisibility()
Update visibility based on player's current ownership Marks owned provinces and adjacent provinces as visible
public void UpdateVisibility()