Chillu1 / ModiBuff

Buff/Debuff/Modifier library focused on feature set and performance, while maintaining 0 GC. Fully pooled
Mozilla Public License 2.0
139 stars 4 forks source link

Dynamic Meta/Post effects #41

Open Chillu1 opened 10 months ago

Chillu1 commented 10 months ago

Describe the solution you'd like Being able to either add, or activate/deactivate meta and post effects on modifiers. Making it, so we can do custom logic while the effect is handled at runtime

Implementation There are two approaches:

  1. Removing and adding meta/post effects inside the effect.
  2. Activating and deactivating them instead.

Activation/deactivation is much better for our ram usage, amount of cloning, and generally preferred. We'd have an int that acts like a bitset that sets the flags of which meta and post effects are active. Storing the default bitset state, and defaulting to it on ResetState.