Skip to content

FogOfWar

namespace Griff.Modules.Strategy;
public sealed class FogOfWar : Component

Hides what the Commander’s team can’t see. Where its units and buildings have never been is black; where they’ve been but can’t see now is dimmed, with enemy units in it hidden. Goes on the camera with the Commander.

This is a component: its saved properties are on its component page.

public float CellSize { get; set; }

The size of a square of fog, in world units. Smaller is smoother but slower.

public Color Explored { get; set; }

The color laid over ground seen before but not now.

public Color Unexplored { get; set; }

The color of ground never seen.