|
AOS Fog of War
|
The non-static high-level monobehaviour interface of the AOS Fog of War module. More...
Classes | |
| class | FogRevealer |
| class | LevelColumn |
| class | LevelData |
Public Member Functions | |
| int | AddFogRevealer (FogRevealer fogRevealer) |
| Adds a new FogRevealer instance to the list and returns its index. | |
| bool | CheckLevelGridRange (Vector2Int levelCoordinates) |
| Checks if the given level coordinates are within level dimension range. | |
| bool | CheckVisibility (Vector3 worldCoordinates, int additionalRadius) |
| Checks if the given pair of world coordinates and additionalRadius is visible by FogRevealers. | |
| bool | CheckWorldGridRange (Vector3 worldCoordinates) |
| Checks if the given world coordinates are within level dimension range. | |
| Vector2Int | GetUnitVector (Vector3 worldCoordinates) |
| Converts "pure" world coordinates into unit world coordinates. | |
| int | GetUnitX (float xValue) |
| Converts world coordinate to unit world coordinates. | |
| int | GetUnitY (float yValue) |
| Converts world coordinate to unit world coordinates. | |
| Vector3 | GetWorldVector (Vector2Int worldCoordinates) |
| Converts level coordinates into world coordinates. | |
| float | GetWorldX (int xValue) |
| Converts level coordinate to corresponding unit world coordinates. | |
| float | GetWorldY (int yValue) |
| Converts level coordinate to corresponding unit world coordinates. | |
| void | RemoveFogRevealer (int revealerIndex) |
| Removes a FogRevealer instance from the list with index. | |
| void | ReplaceFogRevealerList (List< FogRevealer > fogRevealers) |
| Replaces the FogRevealer list with the given one. | |
| Vector2Int | WorldToLevel (Vector3 worldCoordinates) |
| Converts unit (divided by unitScale, then rounded) world coordinates to level coordinates. | |
Properties | |
| List< FogRevealer > | _FogRevealers [get] |
| Transform | _LevelMidPoint [get] |
| float | _UnitScale [get] |
| LevelData | levelData = new LevelData() [get] |
| Shadowcaster | shadowcaster = new Shadowcaster() [get] |
The non-static high-level monobehaviour interface of the AOS Fog of War module.
This class holds serialized data for various configuration properties,
and is resposible for scanning / saving / loading the LevelData object.
The class handles the update frequency of the fog, plus some shader businesses.
Various public interfaces related to FogRevealer's FOV are also available.
|
inline |
Adds a new FogRevealer instance to the list and returns its index.
|
inline |
Checks if the given level coordinates are within level dimension range.
Referenced by FischlWorks_FogWar.csFogWar.CheckVisibility(), and FischlWorks_FogWar.csFogWar.CheckWorldGridRange().
|
inline |
Checks if the given pair of world coordinates and additionalRadius is visible by FogRevealers.
|
inline |
Checks if the given world coordinates are within level dimension range.
|
inline |
Converts "pure" world coordinates into unit world coordinates.
Referenced by FischlWorks_FogWar.csFogWar.WorldToLevel().
|
inline |
Converts world coordinate to unit world coordinates.
Referenced by FischlWorks_FogWar.csFogWar.FogRevealer.GetCurrentLevelCoordinates(), and FischlWorks_FogWar.csFogWar.GetUnitVector().
|
inline |
Converts world coordinate to unit world coordinates.
Referenced by FischlWorks_FogWar.csFogWar.FogRevealer.GetCurrentLevelCoordinates(), and FischlWorks_FogWar.csFogWar.GetUnitVector().
|
inline |
Converts level coordinates into world coordinates.
|
inline |
Converts level coordinate to corresponding unit world coordinates.
Referenced by FischlWorks_FogWar.csFogWar.GetWorldVector().
|
inline |
Converts level coordinate to corresponding unit world coordinates.
Referenced by FischlWorks_FogWar.csFogWar.GetWorldVector().
|
inline |
Removes a FogRevealer instance from the list with index.
|
inline |
Replaces the FogRevealer list with the given one.
|
inline |
Converts unit (divided by unitScale, then rounded) world coordinates to level coordinates.
Referenced by FischlWorks_FogWar.csFogWar.CheckVisibility(), and FischlWorks_FogWar.csFogWar.CheckWorldGridRange().
|
get |
|
get |
|
get |
Referenced by FischlWorks_FogWar.csFogWar.CheckLevelGridRange(), FischlWorks_FogWar.csFogWar.GetWorldX(), FischlWorks_FogWar.csFogWar.GetWorldY(), and FischlWorks_FogWar.Shadowcaster.Initialize().
|
get |
Referenced by FischlWorks_FogWar.csFogWar.CheckVisibility().