<% const properties = locals.properties; -%> // This file is generated. Do not edit. #include #include #include namespace mbgl { namespace style { Light::Light() : impl(std::make_unique()) { } Light::~Light() = default; <% for (const property of properties) { -%> <%- evaluatedType(property) %> Light::getDefault<%- camelize(property.name) %>() { return Light<%- camelize(property.name) %>::defaultValue(); } <%- propertyValueType(property) %> Light::get<%- camelize(property.name) %>() const { return impl->properties.template get>().value; } void Light::set<%- camelize(property.name) %>(<%- propertyValueType(property) %> property) { impl->properties.template get>().value = property; impl->observer->onLightChanged(*this); } void Light::set<%- camelize(property.name) %>Transition(const TransitionOptions& transition) { impl->properties.template get>().transition = transition; impl->observer->onLightChanged(*this); } TransitionOptions Light::get<%- camelize(property.name) %>Transition() const { return impl->properties.template get>().transition; } <% } -%> } // namespace style } // namespace mbgl