mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:00:05 +00:00
Add placefile parsing for Line
This commit is contained in:
parent
f0c2f8eec0
commit
1929ee9eef
2 changed files with 85 additions and 1 deletions
|
|
@ -100,6 +100,26 @@ public:
|
|||
std::string hoverText_ {};
|
||||
};
|
||||
|
||||
struct LineDrawItem : DrawItem
|
||||
{
|
||||
LineDrawItem() { itemType_ = ItemType::Line; }
|
||||
|
||||
boost::gil::rgba8_pixel_t color_ {};
|
||||
double width_ {};
|
||||
std::int32_t flags_ {};
|
||||
std::string hoverText_ {};
|
||||
|
||||
struct Element
|
||||
{
|
||||
double latitude_ {};
|
||||
double longitude_ {};
|
||||
double x_ {};
|
||||
double y_ {};
|
||||
};
|
||||
|
||||
std::vector<Element> elements_ {};
|
||||
};
|
||||
|
||||
bool IsValid() const;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue