![]() |
Online Maps
v3
|
This class is responsible for drawing the map.
Please do not use it if you do not know what you're doing.
Perform all operations with the map through other classes.
More...
Classes | |
struct | StateProps |
The main properties of the map More... | |
Public Member Functions | |
OnlineMapsBuffer (OnlineMaps map) | |
Constructor. More... | |
void | ApplyTile (OnlineMapsTile tile) |
Adds a tile into the buffer. More... | |
void | Dispose () |
Dispose of buffer. More... | |
void | GenerateFrontBuffer () |
Generates the front buffer. More... | |
void | GetCorners (out double tlx, out double tly, out double brx, out double bry) |
Get corners of the map. More... | |
void | SetColorToBuffer (Color clr, OnlineMapsVector2i ip, int x, int y) |
Sets the color to the buffer. More... | |
void | UnloadOldTiles () |
Unload old tiles. More... | |
void | UnloadOldTypes () |
Unload old types of tiles. More... | |
Public Attributes | |
bool | allowUnloadTiles = true |
Indicates that the buffer can unload tiles. More... | |
OnlineMaps | map |
Reference to OnlineMaps. More... | |
OnlineMapsVector2i | bufferPosition |
Position the tile, which begins buffer. More... | |
Color32[] | frontBuffer |
Front buffer. More... | |
OnlineMapsVector2i | frontBufferPosition |
Position the tile, which begins front buffer. More... | |
int | height |
Height of the buffer. More... | |
bool | needUnloadTiles |
Indicates that the buffer should unload tiles. More... | |
OnlineMapsBufferStatus | status = OnlineMapsBufferStatus.wait |
The current status of the buffer. More... | |
int | width |
Width of the buffer. More... | |
StateProps | lastState |
The last state of the map. More... | |
StateProps | renderState |
The current state of the map. More... | |
Properties | |
Vector2 | topLeftPosition [get] |
The coordinates of the top-left the point of map that displays. More... | |
This class is responsible for drawing the map.
Please do not use it if you do not know what you're doing.
Perform all operations with the map through other classes.
OnlineMapsBuffer.OnlineMapsBuffer | ( | OnlineMaps | map | ) |
Constructor.
map | Map |
void OnlineMapsBuffer.ApplyTile | ( | OnlineMapsTile | tile | ) |
Adds a tile into the buffer.
tile | Tile |
void OnlineMapsBuffer.Dispose | ( | ) |
Dispose of buffer.
void OnlineMapsBuffer.GenerateFrontBuffer | ( | ) |
Generates the front buffer.
void OnlineMapsBuffer.GetCorners | ( | out double | tlx, |
out double | tly, | ||
out double | brx, | ||
out double | bry | ||
) |
Get corners of the map.
tlx | Top left longitude |
tly | Top left latitude |
brx | Bottom right longitude |
bry | Bottom right latitude |
void OnlineMapsBuffer.SetColorToBuffer | ( | Color | clr, |
OnlineMapsVector2i | ip, | ||
int | x, | ||
int | y | ||
) |
Sets the color to the buffer.
clr | Color |
ip | Tile position |
x | Pixel X |
y | Pixel Y |
void OnlineMapsBuffer.UnloadOldTiles | ( | ) |
Unload old tiles.
void OnlineMapsBuffer.UnloadOldTypes | ( | ) |
Unload old types of tiles.
bool OnlineMapsBuffer.allowUnloadTiles = true |
Indicates that the buffer can unload tiles.
OnlineMapsVector2i OnlineMapsBuffer.bufferPosition |
Position the tile, which begins buffer.
Color32 [] OnlineMapsBuffer.frontBuffer |
Front buffer.
OnlineMapsVector2i OnlineMapsBuffer.frontBufferPosition |
Position the tile, which begins front buffer.
int OnlineMapsBuffer.height |
Height of the buffer.
StateProps OnlineMapsBuffer.lastState |
The last state of the map.
OnlineMaps OnlineMapsBuffer.map |
Reference to OnlineMaps.
bool OnlineMapsBuffer.needUnloadTiles |
Indicates that the buffer should unload tiles.
StateProps OnlineMapsBuffer.renderState |
The current state of the map.
OnlineMapsBufferStatus OnlineMapsBuffer.status = OnlineMapsBufferStatus.wait |
The current status of the buffer.
int OnlineMapsBuffer.width |
Width of the buffer.
|
get |
The coordinates of the top-left the point of map that displays.