1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/Config/Settings/SpriteDetection.cpp
2022-09-27 21:45:04 +02:00

27 lines
434 B
C++

#include <Config/Settings/SpriteDetection.h>
namespace Config
{
namespace Settings
{
SpriteDetection::SpriteDetection()
: MappedSetting("SpriteDetection", "off", {
{"off", OFF},
{"zconst", ZCONST},
{"zmax", ZMAX},
{"point", POINT}
})
{
}
Setting::ParamInfo SpriteDetection::getParamInfo() const
{
if (ZMAX == m_value)
{
return { "ZMax", 0, 100, 0, m_param };
}
return {};
}
}
}