Item System
Mobbers also features a modular and extensible item system.
This was designed from the ground up to allow for many weapon variations,
along with items to be able to interact with the player and other items.
Weapons
Weapons within Mobbers utilise swappable modules, which allow for items to be added quickly and easily.
This also allows for items to change weapon behaviour via swapping / replacing the module.
Currently, these modular parts of the weapon include trajectories, collision behaviour, fire trigger behaviour and spray patterns.
Modifiers
Modifiers are a special type of item that allow for the addition, multiplication or replacement
of any attribute-marked variable on any component on the entity which picks it up.
This system allowed for simple item creation with minimal extra code per-modifier,
though it currently has a performance penalty from JIT compilation per modified value type / operation.
This system most likely will be revamped in the future to remove this limitation and to increase user-friendliness.