Porytiles
Loading...
Searching...
No Matches
porytiles::OverloadAndRemoveParams Struct Reference

Per-strategy parameters for the OverloadAndRemoveStrategy packing algorithm. More...

#include <packing_strategy_params.hpp>

Collaboration diagram for porytiles::OverloadAndRemoveParams:
[legend]

Public Member Functions

bool has_any () const
 Checks whether any parameter has been explicitly set.
 

Public Attributes

ConfigPODField< std::size_t > max_attempts
 
ConfigPODField< std::uint64_t > seed
 
ConfigPODField< ShuffleStrategyshuffle_strategy
 

Detailed Description

Per-strategy parameters for the OverloadAndRemoveStrategy packing algorithm.

When any field has a value, the strategy runs in single-config mode with the provided parameters (unset fields fall back to their defaults). When no fields have values, the strategy uses its built-in preset matrix mode.

Definition at line 47 of file packing_strategy_params.hpp.

Member Function Documentation

◆ has_any()

bool porytiles::OverloadAndRemoveParams::has_any ( ) const
inline

Checks whether any parameter has been explicitly set.

Returns
true if at least one field has a value

Definition at line 57 of file packing_strategy_params.hpp.

Member Data Documentation

◆ max_attempts

ConfigPODField<std::size_t> porytiles::OverloadAndRemoveParams::max_attempts

Definition at line 48 of file packing_strategy_params.hpp.

◆ seed

ConfigPODField<std::uint64_t> porytiles::OverloadAndRemoveParams::seed

Definition at line 49 of file packing_strategy_params.hpp.

◆ shuffle_strategy

ConfigPODField<ShuffleStrategy> porytiles::OverloadAndRemoveParams::shuffle_strategy

Definition at line 50 of file packing_strategy_params.hpp.


The documentation for this struct was generated from the following file: