SpellInvokingSystem Class
System which allows entities to combine colors to cast spells. Combining happens via the input system triggering the 'useCyan', 'useMagenta' or 'useYellow' events. Casting spells happens via the 'invoke' event. For an entity to invoke a spell, it needs to have a combination of colors in the color queue that matches a pattern stored on the SpellInvoking component. No other components are required for this, however actually casting a spell requires its own set of components specified by the SpellSystem.
Constructor
SpellInvokingSystem
(
-
entitySystemManager
-
inputSystem
-
spellSystem
Parameters:
-
entitySystemManager
ManagerThe entity system manager whose entities this system will be working on.
-
inputSystem
KeyboardInputSystem -
spellSystem
SpellSystem