Skip to content

IHearsMessages

namespace Griff.Scenes;
public interface IHearsMessages

A component that does something when a message is sent with Game.Send, with no script listening: a dungeon going down a floor on its Next Floor Message. Called where the game is run (offline, or on the host), for those on active entities. Any component can implement it, a script’s too.

public abstract bool Hear(string message, object? data)

Hears message sent with data; returns true if it did something with it.