Метод | Описание | |
---|---|---|
AddQuest ( |
Creates a new quest_template and adds it to the database
|
|
AdminEditQuest ( int id, |
Gets the specified quest_template and updates it with any edits
|
|
ApproveUserQuest ( int questID ) : void | ||
CheckAllUserQuestCompletion ( int questID ) : void |
Checks all users for quest completion
|
|
CheckAssociatedQuestCompletion ( int achievementID, user userToCheck, List |
Checks for completion of quests that have the specified achievement as a quest step
|
|
DenyUserQuest ( int questID, string reason ) : void | ||
GetQuestState ( int id ) : int | ||
GetQuestsForFeed ( ) : List |
||
GetTrackedQuestsForUser ( int userID ) : IEnumerable |
||
QuestRepository ( IUnitOfWork unitOfWork ) : System |
Creates a new user repository
|
|
QuestTitleExists ( String title, int id = null ) : bool | ||
Save ( ) : void | ||
Track ( int id ) : System.Boolean |
Tracks the specific quest for the current user
|
|
Untrack ( int id ) : System.Boolean |
Untracks the specific quest for the current user
|
Метод | Описание | |
---|---|---|
AddAchievementStepsToDatabase ( IEnumerable |
Adds the collection of quest_achievement_step(s) to the database
|
|
AddQuestTemplateToDatabase ( quest_template template ) : void |
Add the quest_template to the database
|
|
CompleteQuest ( int questID, user userToCheck, int achievementID, bool autoSave ) : void | ||
RevokeQuest ( quest_instance questInstance, int achievementID, bool autoSave ) : void |
public AddQuest ( |
||
model | The AddQuestViewModel passed in from the controller | |
Результат | void |
public AdminEditQuest ( int id, |
||
id | int | The id of the quest_template |
model | The EditQuestViewModel passed in from the controller | |
Результат | void |
public ApproveUserQuest ( int questID ) : void | ||
questID | int | |
Результат | void |
public CheckAllUserQuestCompletion ( int questID ) : void | ||
questID | int | The id of the quest to check |
Результат | void |
public CheckAssociatedQuestCompletion ( int achievementID, user userToCheck, List |
||
achievementID | int | ID of the achievement |
userToCheck | user | |
userAchievements | List |
|
autoSave | bool | |
achievementRevoked | bool | |
Результат | void |
public DenyUserQuest ( int questID, string reason ) : void | ||
questID | int | |
reason | string | |
Результат | void |
public GetTrackedQuestsForUser ( int userID ) : IEnumerable |
||
userID | int | |
Результат | IEnumerable |
public QuestRepository ( IUnitOfWork unitOfWork ) : System | ||
unitOfWork | IUnitOfWork | The unit of work that created this repository |
Результат | System |
public QuestTitleExists ( String title, int id = null ) : bool | ||
title | String | |
id | int | |
Результат | bool |
public Track ( int id ) : System.Boolean | ||
id | int | The id of the quest |
Результат | System.Boolean |
public Untrack ( int id ) : System.Boolean | ||
id | int | The id of the quest |
Результат | System.Boolean |