visionPack beta
Function of @v12-engine/engine
export declare function visionPack(): GamePack;Vision: what a game with it (Rules.packs) gets for what is seen. A buff that reveals its carrier to the team of whoever put it on (BuffDef.revealed), the revealUnit effect (the caster's team sees each it reaches for its duration; revealUnit in code), camouflage (BuffDef.camouflage: enemies see the carrier only from that near) and true sight (UnitTypeDef.trueSight, BuffDef.trueSight: the invisible and camouflaged enemies that near are found). Everything that asks what a team sees goes by it (world.isVisibleTo: what units pick, the commands a player may give, the computer players, each player's snapshot), and the fog is lit where a revealed or found unit stands, as for what a detect found. Nothing of its own is saved: what is revealed is the detection component