<% const type = locals.type; const layoutProperties = locals.layoutProperties; const paintProperties = locals.paintProperties; -%> // clang-format off // This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`. #include _layer_properties.hpp> #include _layer_impl.hpp> namespace mbgl { namespace style { <%- camelize(type) %>LayerProperties::<%- camelize(type) %>LayerProperties( Immutable<<%- camelize(type) %>Layer::Impl> impl_) : LayerProperties(std::move(impl_)) {} <%- camelize(type) %>LayerProperties::<%- camelize(type) %>LayerProperties( Immutable<<%- camelize(type) %>Layer::Impl> impl_, <% if (type === 'background' || type === 'fill' || type === 'line' || type === 'fill-extrusion') { -%> CrossfadeParameters crossfade_, <% } -%> <%- camelize(type) %>PaintProperties::PossiblyEvaluated evaluated_) : LayerProperties(std::move(impl_)), <% if (type === 'background' || type === 'fill' || type === 'line' || type === 'fill-extrusion') { -%> crossfade(crossfade_), <% } -%> evaluated(std::move(evaluated_)) {} <%- camelize(type) %>LayerProperties::~<%- camelize(type) %>LayerProperties() = default; unsigned long <%- camelize(type) %>LayerProperties::constantsMask() const { return evaluated.constantsMask(); } const <%- camelize(type) %>Layer::Impl& <%- camelize(type) %>LayerProperties::layerImpl() const { return static_castLayer::Impl&>(*baseImpl); } } // namespace style } // namespace mbgl // clang-format on