SOFTLEASH / DOCUMENTATION
Event Board
Let systems communicate without tightly coupling them together.
A working outline. The snippets below use plain LÖVE and Lua, not the final SoftLEASH API.
Overview
An event board gives gameplay events a shared place to travel. Objects can announce that something happened, while interested systems decide how to respond.
Document the event names, payload conventions, listener lifetime, and dispatch order here. The example only demonstrates a standard LÖVE input callback, not an engine event API.
LÖVE example
A small, plain LÖVE example for the draft. Replace this snippet with the documented SoftLEASH API and a focused use case later.
What to document next
Registering and removing listeners.
Payloads and event naming conventions.
Immediate versus queued dispatch.
