Skip to content

FogSettings beta ​

Interface of @v12-engine/engine

ts
export interface FogSettings

How the fog of war keeps what was seen (RuleSettings.fog)

Members ​

explored ​

ts
explored?: 'remembered' | 'nothing';

What is kept of what was seen once: remembered, ground drawn dim and buildings as they were last seen (when left out); nothing, out of sight is as never seen (ground black again, buildings forgotten; building there is still allowed)

mask ​

ts
mask?: 'black' | 'dim';

How ground never seen is drawn: black (when left out), or dim as explored ground is

nightSight ​

ts
nightSight: number;

Part of its sight a unit has at night, for types that do not say (UnitTypeDef.sightNight)

startExplored ​

ts
startExplored?: boolean;

The whole map explored from the start, the fog over it all the same (as classic RTS melee maps are): the ground drawn dim, and what stands on it and belongs to no player (trees, mines, rocks, neutral buildings: shops, taverns, the creeps' own) seen from the first moment, as it stood then; units, and players' buildings, only once in sight. A map says otherwise (MapDef.explored). No when left out