comp::Sectors_Loader Class Reference
Keeps sectors in range loaded. Needs to be updated from a simulaiton (Sectors_Loader::update). More...
#include <Sectors_Loader.hpp>
Public Member Functions | |
Sectors_Loader (iv::Instance *inst, Sectors *sectors, iv::Attr< iv::float2 > *position, float load_range, int sector_size) | |
iv::Instance * | instance () |
void | update () |
Public Attributes | |
iv::ClientMarker | cm |
Detailed Description
Keeps sectors in range loaded. Needs to be updated from a simulaiton (Sectors_Loader::update).
Definition at line 13 of file Sectors_Loader.hpp.
Constructor & Destructor Documentation
◆ Sectors_Loader()
comp::Sectors_Loader::Sectors_Loader | ( | iv::Instance * | inst, |
Sectors * | sectors, | ||
iv::Attr< iv::float2 > * | position, | ||
float | load_range, | ||
int | sector_size | ||
) |
Definition at line 9 of file Sectors_Loader.cpp.
Member Function Documentation
◆ instance()
iv::Instance * comp::Sectors_Loader::instance | ( | ) |
Definition at line 20 of file Sectors_Loader.cpp.
◆ update()
void comp::Sectors_Loader::update | ( | ) |
Polls current position, unloads out of reach sectors and loads sectors that are now in reach.
Definition at line 37 of file Sectors_Loader.cpp.
Member Data Documentation
◆ cm
iv::ClientMarker comp::Sectors_Loader::cm |
Definition at line 16 of file Sectors_Loader.hpp.
The documentation for this class was generated from the following files:
- iv_components/Sectors/Sectors_Loader.hpp
- iv_components/Sectors/Sectors_Loader.cpp