Ejemplo n.º 1
0
 public SpellWrapper(UnitySpellData spellData)
 {
     this.spellData   = spellData;
     spellsDictionary = new Dictionary <int, ISpellController>();
     spellFactory     = new SpellFactory(spellData);
     localSpells      = new List <ISpellController>();
     onlineSpells     = new List <ISpellController>();
 }
Ejemplo n.º 2
0
    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);
    }