Add GetSong to Categories
This commit is contained in:
1 parent
d20c31ef71
commit
388bd6310f
1 file changed
+4
-11
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user