// Copyright (c) Pixel Crushers. All rights reserved.
using System;
namespace PixelCrushers.DialogueSystem
{
///
/// When the player selects a response, these event arguments are passed back from the
/// dialogue UI. The receiver can then follow the destination dialogue entry to move
/// the conversation forward.
///
public class SelectedResponseEventArgs : EventArgs
{
///
/// The response that was selected.
///
public Response response;
///
/// The destination dialogue entry that the response links to.
///
///
/// The destination dialogue entry.
///
public DialogueEntry DestinationEntry
{
get { return (response == null) ? null : response.destinationEntry; }
}
///
/// Initializes a new ResponseSelectedEventArgs.
///
///
/// The response.
///
public SelectedResponseEventArgs(Response response)
{
this.response = response;
}
}
}