Agrarsense
|
#include <SensorManager.h>
Public Member Functions | |
USensorManager () | |
~USensorManager () | |
TArray< ASensor * > | GetAllSensors () |
TArray< ASensor * > | GetAllSensorsOfType (ESensorTypes SensorType) |
Static Public Member Functions | |
static USensorManager * | Get () |
Public Attributes | |
FSensorSpawnedDelegate | OnSensorSpawned |
FSensorDestroyedDelegate | OnSensorDestroyed |
Static Private Member Functions | |
static void | AddSensor (ASensor *SensorPtr) |
static void | RemoveSensor (ASensor *SensorPtr) |
Private Attributes | |
TArray< ASensor * > | Sensors |
Static Private Attributes | |
static USensorManager * | Instance = nullptr |
Friends | |
class | ASensor |
Sensor Manager.
Definition at line 22 of file SensorManager.h.
USensorManager::USensorManager | ( | ) |
Definition at line 23 of file SensorManager.cpp.
References Instance.
USensorManager::~USensorManager | ( | ) |
Definition at line 37 of file SensorManager.cpp.
References Instance.
|
staticprivate |
Definition at line 45 of file SensorManager.cpp.
References Get(), OnSensorSpawned, and Sensors.
Referenced by ASensor::BeginPlay().
|
static |
Get USensorManager instance pointer.
Definition at line 11 of file SensorManager.cpp.
References Instance.
Referenced by AddSensor(), UAgrarsenseStatics::GetSensorManager(), RemoveSensor(), and UAgrarsenseSettings::Setup().
TArray< ASensor * > USensorManager::GetAllSensors | ( | ) |
Retrieves all sensors currently managed by this Sensor Manager.
Definition at line 65 of file SensorManager.cpp.
References Sensors.
TArray< ASensor * > USensorManager::GetAllSensorsOfType | ( | ESensorTypes | SensorType | ) |
Retrieves sensors of a specific type currently managed by this Sensor Manager.
SensorType | The type of sensors to retrieve. |
Definition at line 70 of file SensorManager.cpp.
References Sensors.
|
staticprivate |
Definition at line 55 of file SensorManager.cpp.
References Get(), OnSensorDestroyed, and Sensors.
Referenced by ASensor::EndPlay().
|
friend |
Definition at line 67 of file SensorManager.h.
|
staticprivate |
Definition at line 73 of file SensorManager.h.
Referenced by Get(), USensorManager(), and ~USensorManager().
FSensorDestroyedDelegate USensorManager::OnSensorDestroyed |
On Sensor Destroyed event. Called right before starting to destroy things at Sensor::EndPlay.
Definition at line 58 of file SensorManager.h.
Referenced by RemoveSensor(), and UAgrarsenseSettings::Setup().
FSensorSpawnedDelegate USensorManager::OnSensorSpawned |
On Sensor spawned event. Called last in Sensor::BeginPlay
Definition at line 51 of file SensorManager.h.
Referenced by AddSensor(), and UAgrarsenseSettings::Setup().
|
private |
Definition at line 76 of file SensorManager.h.
Referenced by AddSensor(), GetAllSensors(), GetAllSensorsOfType(), and RemoveSensor().