mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
replace YAML with custom made library for reading text files named FML
This commit is contained in:
@@ -309,4 +309,15 @@ inline std::ostream& operator<<(std::ostream& out, const TRect<T>& rect)
|
||||
return out;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
inline void operator>>(const FML::Node& node, TRect<T>& rect)
|
||||
{
|
||||
T x, y, width, height;
|
||||
*node.at(0) >> x;
|
||||
*node.at(1) >> y;
|
||||
*node.at(2) >> width;
|
||||
*node.at(3) >> height;
|
||||
rect.setRect(x, y, width, height);
|
||||
}
|
||||
|
||||
#endif // RECT_H
|
||||
|
||||
Reference in New Issue
Block a user