FB2AOISystem
Overview
- Area-of-interest (AOI) system.
Metadata
| Field | Value |
|---|---|
| Kind | system |
| Environment | B2 - Simulation |
| Category | systems |
| Extends | FB2Subsystem |
| Require | require('Systems.FB2AOISystem') |
Properties (5)
| Name | Type | Description |
|---|---|---|
AOICenterLocation | FVector | |
GameCameraLocation | FVector | |
GridAuraInfos | table<FIntVector2, FB2AuraInfoSet> | Only for range-finding; each Entity manages the lifetime of its own Aura. |
GridInfos | table<FIntVector2, FB2AOIGridInfo> | Considers 2D only for now; must handle entity despawn. |
LastCenterCoord | FIntVector2 | static FB2AOISystem* Subsystem; virtual void Initialize(FSubsystemCollectionBase& Collection) override { Subsystem = this; } |
Functions (12)
| Function | Parameters | Returns | Description |
|---|---|---|---|
ClearPostProcessTask | - | - | Cleans up remaining tasks. |
ForceUpdate | InEntity: FB2Actor | - | |
GetCameraLocation | - | FVector | Returns Camera Location. |
GetCenterLocation | - | FVector | Returns Center Location. |
IsInAOI | InLocation: FVector, InStep: integer | boolean | Returns whether In AOI. |
IsInCamera | InLocation: FVector, InStep: integer | boolean | Returns whether In Camera. |
LazyUpdate | InEntity: FB2Actor | - | |
PostProcess | - | - | |
Release | InEntity: FB2Actor | - | |
RemoveEntity | InEntity: FB2Actor | - | Removes Entity. |
Update | InEntity: FB2Actor | - | |
UpdateLocation | CenterLocation: FVector, CameraLocation: FVector | - | Updates Location. |
Override points (8)
Implement these in Lua as FB2AOISystem.Override_Name = function(...) end.
| Function | Parameters | Returns | Description |
|---|---|---|---|
Override_ClearPostProcessTask | - | - | Cleans up remaining tasks. |
Override_ForceUpdate | InEntity: FB2Actor | - | |
Override_LazyUpdate | InEntity: FB2Actor | - | |
Override_PostProcess | - | - | |
Override_Release | InEntity: FB2Actor | - | |
Override_RemoveEntity | InEntity: FB2Actor | - | Removes Entity. |
Override_Update | InEntity: FB2Actor | - | |
Override_UpdateLocation | CenterLocation: FVector, CameraLocation: FVector | - | Updates Location. |