Skip to content

MessageListener

namespace Griff.Runtime;
public sealed class MessageListener

Something listening for a message sent with Send, made with a behavior’s On or On. Cancel it to stop listening.

public bool IsActive { get; }

False once cancelled, or once its owner has left the scene.

public string Message { get; }

The message listened for, e.g. “PlayerDied”.

public Entity? OwnerEntity { get; }

The entity whose removal stops this listener, if any.

public void Cancel()