1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00
Changes were reviewed manually
This commit is contained in:
Alexander Wilms
2024-06-24 03:23:26 +02:00
parent 820b1b446e
commit 02e429e973
277 changed files with 815 additions and 815 deletions

View File

@ -1452,37 +1452,37 @@ bool ERMInterpreter::isATrigger( const ERM::TLine & line )
return false;
}
ERM::EVOtions ERMInterpreter::getExpType(const ERM::TVOption & opt)
ERM::EVOptions ERMInterpreter::getExpType(const ERM::TVOption & opt)
{
struct Visitor
{
ERM::EVOtions operator()(const boost::recursive_wrapper<ERM::TVExp>&) const
ERM::EVOptions operator()(const boost::recursive_wrapper<ERM::TVExp>&) const
{
return ERM::EVOtions::VEXP;
return ERM::EVOptions::VEXP;
}
ERM::EVOtions operator()(const ERM::TSymbol&) const
ERM::EVOptions operator()(const ERM::TSymbol&) const
{
return ERM::EVOtions::SYMBOL;
return ERM::EVOptions::SYMBOL;
}
ERM::EVOtions operator()(char) const
ERM::EVOptions operator()(char) const
{
return ERM::EVOtions::CHAR;
return ERM::EVOptions::CHAR;
}
ERM::EVOtions operator()(double) const
ERM::EVOptions operator()(double) const
{
return ERM::EVOtions::DOUBLE;
return ERM::EVOptions::DOUBLE;
}
ERM::EVOtions operator()(int) const
ERM::EVOptions operator()(int) const
{
return ERM::EVOtions::INT;
return ERM::EVOptions::INT;
}
ERM::EVOtions operator()(const ERM::Tcommand&) const
ERM::EVOptions operator()(const ERM::Tcommand&) const
{
return ERM::EVOtions::TCMD;
return ERM::EVOptions::TCMD;
}
ERM::EVOtions operator()(const ERM::TStringConstant&) const
ERM::EVOptions operator()(const ERM::TStringConstant&) const
{
return ERM::EVOtions::STRINGC;
return ERM::EVOptions::STRINGC;
}
};
const Visitor v;