mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Add 'hasFeature' method for convenience
This commit is contained in:
parent
e00046dd70
commit
5b182c31df
@ -162,6 +162,11 @@ public:
|
|||||||
bool smartPointerSerialization;
|
bool smartPointerSerialization;
|
||||||
bool saving;
|
bool saving;
|
||||||
|
|
||||||
|
bool hasFeature(Version what)
|
||||||
|
{
|
||||||
|
return version >= what;
|
||||||
|
};
|
||||||
|
|
||||||
BinaryDeserializer(IBinaryReader * r);
|
BinaryDeserializer(IBinaryReader * r);
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
|
@ -119,6 +119,11 @@ public:
|
|||||||
bool smartPointerSerialization;
|
bool smartPointerSerialization;
|
||||||
bool saving;
|
bool saving;
|
||||||
|
|
||||||
|
bool hasFeature(Version what)
|
||||||
|
{
|
||||||
|
return version >= what;
|
||||||
|
};
|
||||||
|
|
||||||
BinarySerializer(IBinaryWriter * w);
|
BinarySerializer(IBinaryWriter * w);
|
||||||
|
|
||||||
template<typename Base, typename Derived>
|
template<typename Base, typename Derived>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user