... | ... | @@ -10,7 +10,7 @@ Vytvorte si 2 súbory - spells.csv a effects.json v resources: |
|
|
|
|
|
Nech v sebe spells.csv obsahuje:
|
|
|
|
|
|
name;spelltype;animationpath;animationwidth;animationheight;effect1,effect2,effect3
|
|
|
`name;spelltype;animationpath;animationwidth;animationheight;effect1,effect2,effect3`
|
|
|
|
|
|
a effects.json nech je JArray:
|
|
|
|
... | ... | @@ -28,8 +28,8 @@ Vytvorte si rozhranie `ISpellDataProvider` a dve metódy: |
|
|
```csharp
|
|
|
public interface ISpellDataProvider
|
|
|
{
|
|
|
public Dictionary<string, SpellInfo> LoadSpellInfo();
|
|
|
public Dictionary<string, int> LoadSpellEffects();
|
|
|
public Dictionary<string, SpellInfo> GetSpellInfo();
|
|
|
public Dictionary<string, int> GetSpellEffects();
|
|
|
}
|
|
|
```
|
|
|
|
... | ... | |