Add GetSong to Categories

This commit is contained in:
Flamefire committed 2014-08-14 16:07:06 +02:00
1 parent d20c31ef71
commit 388bd6310f
1 file changed
+4 -11
+4 -11
View File
@@ -56,18 +56,11 @@ namespace VocaluxeLib.Songs
return Songs.Count(sp => !sp.IsSung); return Songs.Count(sp => !sp.IsSung);
} }
public CCategory(string name, CTexture coverSmall, CTexture coverBig) public CSong GetSong(int numInCategory)
{ {
Name = name; if (numInCategory >= 0 && numInCategory < Songs.Count)
CoverTextureSmall = coverSmall; return CBase.Songs.GetSongByID(Songs[numInCategory].SongID);
CoverTextureBig = coverBig; return null;
}
public CCategory(CCategory cat)
{
Name = cat.Name;
CoverTextureSmall = cat.CoverTextureSmall;
CoverTextureBig = cat.CoverTextureBig;
} }
} }
} }