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 saving;
|
||||
|
||||
bool hasFeature(Version what)
|
||||
{
|
||||
return version >= what;
|
||||
};
|
||||
|
||||
BinaryDeserializer(IBinaryReader * r);
|
||||
|
||||
template<class T>
|
||||
|
@ -119,6 +119,11 @@ public:
|
||||
bool smartPointerSerialization;
|
||||
bool saving;
|
||||
|
||||
bool hasFeature(Version what)
|
||||
{
|
||||
return version >= what;
|
||||
};
|
||||
|
||||
BinarySerializer(IBinaryWriter * w);
|
||||
|
||||
template<typename Base, typename Derived>
|
||||
|
Loading…
x
Reference in New Issue
Block a user