OldBlueWater/BlueWater/Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/Triggers/Triggers/DialogueSystemTriggerEvent.cs

106 lines
3.4 KiB
C#

// Copyright (c) Pixel Crushers. All rights reserved.
namespace PixelCrushers.DialogueSystem
{
/// <summary>
/// A bit mask enum that defines the events that can trigger DialogueSystemTrigger.
/// As the Dialogue System has grown, trigger events were added to the end rather
/// than reordering the enum (which would break serialization in existing projects).
/// This is an expanded version of the deprecated DialogueTriggerEvent.
/// If you modify the list, you must also update the property drawer DialogueSystemTriggerEventDrawer.
/// </summary>
[System.Flags]
public enum DialogueSystemTriggerEvent
{
/// <summary>
/// Trigger when the GameObject receives an OnBarkEnd message
/// </summary>
OnBarkEnd = 0x1,
/// <summary>
/// Trigger when the GameObject receives an OnConversationEnd message
/// </summary>
OnConversationEnd = 0x2,
/// <summary>
/// Trigger when the GameObject receives an OnSequenceEnd message
/// </summary>
OnSequenceEnd = 0x4,
/// <summary>
/// Trigger when another collider enters this GameObject's trigger collider
/// </summary>
OnTriggerEnter = 0x8,
/// <summary>
/// Trigger when the GameObject starts (e.g., at the start of the level)
/// </summary>
OnStart = 0x10,
/// <summary>
/// Trigger when the GameObject receives an OnUse message (e.g., from the Selector component)
/// </summary>
OnUse = 0x20,
/// <summary>
/// Trigger when the trigger script is enabled (allows retriggering if you disable and
/// re-enable the script or deactivate and re-activate its GameObject.
/// </summary>
OnEnable = 0x40,
/// <summary>
/// Trigger when another collider exits this GameObject's trigger collider
/// </summary>
OnTriggerExit = 0x80,
/// <summary>
/// Trigger when the GameObject is disabled
/// </summary>
OnDisable = 0x100,
/// <summary>
/// Trigger when the GameObject is destroyed
/// </summary>
OnDestroy = 0x200,
/// <summary>
/// Don't automatically trigger
/// </summary>
None = 0x400,
/// <summary>
/// Trigger when another collider touches this collider
/// </summary>
OnCollisionEnter = 0x800,
/// <summary>
/// Trigger when another collider stops touching this collider
/// </summary>
OnCollisionExit = 0x1000,
/// <summary>
/// Trigger when the GameObject receives an OnBarkStart message
/// </summary>
OnBarkStart = 0x2000,
/// <summary>
/// Trigger when the GameObject receives an OnConversationStart message
/// </summary>
OnConversationStart = 0x4000,
/// <summary>
/// Trigger when the GameObject receives an OnSequenceStart message
/// </summary>
OnSequenceStart = 0x8000,
/// <summary>
/// Trigger after applying save data, or after Save System's Frames To Wait Before Apply Data if not applying save data
/// </summary>
OnSaveDataApplied = 0x10000
}
}