Core/Quests: Implemented player choices
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user