public static bool Init() { if (_PartyModes.Count > 0) { return(false); //Already initialized } SPartyMode pm = new SPartyMode { Info = new SPartyModeInfos { Author = "Vocaluxe Team", Description = "Normal game", Name = "Normal", TargetAudience = "Just a normal game for everyone" }, PartyMode = new CPartyModeNormal(-1), PartyModeSystemVersion = _PartyModeSystemVersion, ScreenFiles = new List <string>() }; _PartyModes.Add(-1, pm); _CurrentPartyMode = pm.PartyMode; Debug.Assert(_CurrentPartyMode != null && _CurrentPartyMode.ID == -1); //load other party modes _LoadPartyModes(); return(_CurrentPartyMode.Init()); }
public void AssignPartyMode(IPartyMode partyMode) { _PartyMode = partyMode; PartyModeID = partyMode.ID; }