#region license
// This file is part of Vocaluxe.
//
// Vocaluxe is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Vocaluxe is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Vocaluxe. If not, see .
#endregion
using VocaluxeLib.Menu;
namespace VocaluxeLib.PartyModes
{
#region Structs
public struct SScreenSongOptions
{
public SSortingOptions Sorting;
public SSelectionOptions Selection;
}
public struct SSortingOptions
{
public ESongSorting SongSorting;
public EOffOn Tabs;
public EOffOn IgnoreArticles;
public string SearchString;
public bool SearchActive;
public EDuetOptions DuetOptions;
}
///
/// Configuration of song selection options
///
public struct SSelectionOptions
{
///
/// If != -1, the SongMenu should set the song selection to the provided song index (visible index) if possible
///
public int SongIndex;
///
/// If true, the SongMenu should perform the select random song method
///
public bool SelectNextRandomSong;
///
/// Choosing song only by random
///
public bool RandomOnly;
///
/// If true, it is not allowed to go to MainScreen nor open the playlist nor open the song menu
///
public bool PartyMode;
///
/// If true, it is not alled to change or leave the category. It's only valid if Tabs=On.
///
public bool CategoryChangeAllowed;
///
/// The number of jokers left for each team
///
public int[] NumJokers;
///
/// The Team Name of the teams (:>)
///
public string[] TeamNames;
}
#endregion Structs
public interface IPartyMode
{
int ID { get; }
bool Init();
void LoadTheme();
void ReloadSkin();
void ReloadTheme();
void AddScreen(CMenuParty screen, string screenName);
void SaveScreens();
void UpdateGame();
IMenu GetStartScreen();
SScreenSongOptions GetScreenSongOptions();
void OnSongChange(int songIndex, ref SScreenSongOptions screenSongOptions);
void OnCategoryChange(int categoryIndex, ref SScreenSongOptions screenSongOptions);
int GetMaxPlayer();
int GetMinPlayer();
int GetMaxTeams();
int GetMinTeams();
int GetMinPlayerPerTeam();
int GetMaxPlayerPerTeam();
int GetMaxNumRounds();
void SetSearchString(string searchString, bool visible);
void JokerUsed(int teamNr);
void SongSelected(int songID);
void FinishedSinging();
void LeavingScore();
void LeavingHighscore();
}
}