Skip to main content

Class NotificationResponse

Handles incoming NotificationEntry objects by displaying them as notification messages within the configured message panel. Uses an object pool of message presenters for performance-efficient reuse of notification UI elements.

[RequireComponent(typeof(TypewriterActor))]
public class NotificationResponse : MonoBehaviour, IEntryResponser<NotificationEntry>, IEntryResponser

Inheritance​

Implements​

Methods​

HandleEntry(BaseEntry, ITypewriterContext)​

Handles an incoming typewriter BaseEntry.

public void HandleEntry(BaseEntry entry, ITypewriterContext context)

Parameters​

NameTypeDescription
entryBaseEntryThe typewriter entry that this responder will process.
contextITypewriterContextThe context instance providing access to blackboards and runtime data shared with other entries in the same scope.

HandleEntry(NotificationEntry, ITypewriterContext)​

Handles an incoming NotificationEntry by retrieving a presenter from the object pool, initializing it with the entry data, and ensuring it will be returned to the pool upon dismissal.

public void HandleEntry(NotificationEntry entry, ITypewriterContext context)

Parameters​

NameTypeDescription
entryNotificationEntryThe notification entry to be displayed.
contextITypewriterContextThe current typewriter context providing shared blackboards and runtime data.
  • Methods
    • HandleEntry(BaseEntry, ITypewriterContext)
    • HandleEntry(NotificationEntry, ITypewriterContext)