public SpellWrapper(UnitySpellData spellData) { this.spellData = spellData; spellsDictionary = new Dictionary <int, ISpellController>(); spellFactory = new SpellFactory(spellData); localSpells = new List <ISpellController>(); onlineSpells = new List <ISpellController>(); }
public SpellFactory(UnitySpellData spellData) { //Direction directionSpellsFactory = new Dictionary <SpellType, ISpellFactory_SpellWithDirection>(); AddDirectionToSpellsFactory(new SpellFactory_FireBall()); //Static staticSpellsFactory = new Dictionary <SpellType, ISpellFactory_InStaticPosition>(); AddStaticToSpellsFactory(new SpellFactory_Explode()); var debug = new SpellFactory_Teleport(); AddStaticToSpellsFactory(debug); }