DynaMix
1.3.7
A new take on polymorphism in C++
|
#include <common_mutation_rules.hpp>
Public Member Functions | |
virtual void | apply_to (object_type_mutation &mutation) override |
Called when applying the mutation rule. | |
Protected Attributes | |
const mixin_id | _source_id |
const mixin_id | _target_id |
A mutation rule for a substitute mixin.
If active, such rule will cause any mutation that tries to add SourceMixin
to instead add TargetMixin
.
SourceMixin | The mixin type to be substituted |
TargetMixin | The mixin type that is the substitute |