Sectors_Loader.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Sectors.hpp"
4 #include <ivorium.hpp>
5 
6 namespace comp
7 {
8 
14 {
15 public:
17 
18  Sectors_Loader( iv::Instance * inst, Sectors * sectors, iv::Attr< iv::float2 > * position, float load_range, int sector_size );
20 
24  void update();
25 
26 private:
27  void Load( iv::int2 block );
28  void Unload( iv::int2 block );
29 
30 private:
31  Sectors * sectors;
32  iv::Attr< iv::float2 > * position;
33  float load_range;
34  int sector_size;
35 
36  iv::int2 current_begin;
37  iv::int2 current_end;
38 };
39 
40 }