mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
Merge pull request #3997 from IvanSavenko/serialization_refactor
[1.6] Serialization refactor
This commit is contained in:
@@ -36,12 +36,6 @@ namespace Goals
|
||||
{
|
||||
return new T(static_cast<T const &>(*this)); //casting enforces template instantiation
|
||||
}
|
||||
template<typename Handler> void serialize(Handler & h)
|
||||
{
|
||||
h & static_cast<AbstractGoal &>(*this);
|
||||
//h & goalType & isElementar & isAbstract & priority;
|
||||
//h & value & resID & objid & aid & tile & hero & town & bid;
|
||||
}
|
||||
|
||||
bool operator==(const AbstractGoal & g) const override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user