Core/Quests: Implemented player choices

This commit is contained in:
hondacrx
2018-01-01 12:18:52 -05:00
parent 904a7bc3a0
commit 45333097df
11 changed files with 441 additions and 91 deletions
+3
View File
@@ -655,6 +655,9 @@ namespace Game.Scripting
// Called when a player completes a movie
public virtual void OnMovieComplete(Player player, uint movieId) { }
// Called when a player choose a response from a PlayerChoice
public virtual void OnPlayerChoiceResponse(Player player, uint choiceID, uint responseID) { }
}
public class GuildScript : ScriptObject
+4
View File
@@ -1175,6 +1175,10 @@ namespace Game.Scripting
{
ForEach<PlayerScript>(p => p.OnMovieComplete(player, movieId));
}
public void OnPlayerChoiceResponse(Player player, uint choiceID, uint responseID)
{
ForEach<PlayerScript>(p => p.OnPlayerChoiceResponse(player, choiceID, responseID));
}
// GuildScript
public void OnGuildAddMember(Guild guild, Player player, byte plRank)