forked from Imulion/MHFZ_Overlay
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b786ac
commit 4d233e9
Showing
18 changed files
with
468 additions
and
419 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// © 2023 The mhfz-overlay developers. | ||
// Use of this source code is governed by a MIT license that can be | ||
// found in the LICENSE file. | ||
|
||
namespace MHFZ_Overlay.Services.Contracts; | ||
|
||
public interface IChallenge | ||
{ | ||
/// <summary> | ||
/// Checks the requirements to unlock the challenge. | ||
/// </summary> | ||
/// <param name="bronzeCount"></param> | ||
/// <param name="silverCount"></param> | ||
/// <param name="goldCount"></param> | ||
/// <param name="platinumCount"></param> | ||
/// <param name="secretID"></param> | ||
/// <returns>false if the requirements are not met</returns> | ||
bool CheckAchievementRequirements(int bronzeCount, int silverCount, int goldCount, int platinumCount, int secretID); | ||
|
||
/// <summary> | ||
/// Unlocks the challenge. | ||
/// </summary> | ||
/// <param name="checkRequirements"></param> | ||
/// <returns>false if the challenge could not be unlocked</returns> | ||
bool Unlock(bool checkRequirements); | ||
|
||
/// <summary> | ||
/// Starts the challenge. If there is already a challenge in progress, that challenge is canceled. | ||
/// </summary> | ||
/// <returns>false if the challenge could not be started</returns> | ||
bool Start(); | ||
|
||
/// <summary> | ||
/// Cancels the challenge. | ||
/// </summary> | ||
void Cancel(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.