Skip to content

Sein Fog Vision Group

C++ type · FSeinFogVisionGroup

#include "Default/SeinFogOfWarDefault.h"

Per-observer visibility state. One per FSeinPlayerID; lazily created on the owner’s first stamp.

  • CellBitfield: the EVNNNNNN byte the player sees per cell. Bit 0 (Explored) is sticky for the match. Bits 1-7 are derived from the refcount arrays — set when a bit’s refcount goes 0→1, cleared when it goes 1→0. Direct readers (LOS resolver, BPFL, debug) never see refcounts; they just read this byte.

  • RefCounts[bit]: how many sources currently stamp bit at each cell. Indexed [1..7] (bit 0 unused — Explored is sticky, no refcount). Lazily allocated per-bit: only bits actually stamped allocate their W*H array. uint16 caps simultaneous overlap at 65535 sources/cell — well above any realistic RTS scenario.