1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Add 'hasFeature' method for convenience

This commit is contained in:
Ivan Savenko
2024-05-07 14:48:40 +00:00
parent e00046dd70
commit 5b182c31df
2 changed files with 10 additions and 0 deletions

View File

@@ -162,6 +162,11 @@ public:
bool smartPointerSerialization;
bool saving;
bool hasFeature(Version what)
{
return version >= what;
};
BinaryDeserializer(IBinaryReader * r);
template<class T>