Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua: Allow defining and emitting new signal types from Lua scripts #2507

Open
XHawk87 opened this issue Jan 18, 2025 · 0 comments
Open

Lua: Allow defining and emitting new signal types from Lua scripts #2507

XHawk87 opened this issue Jan 18, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request server This issue requires changes to the server spec-file Related to Rulesets, Tilesets, Musicsets, Soundsets, etc.

Comments

@XHawk87
Copy link
Collaborator

XHawk87 commented Jan 18, 2025

Is your feature request related to a problem? Please describe.
It would be useful to be able to set up ruleset-specific events in Lua so that we can extend behaviour rather than modifying it directly.

Describe the solution you'd like

  • Add a new signal.define(name) function that creates a new signal type that can be emitted from Lua.
  • Add a new signal.emit(name, ...args) function that emits a signal in Lua for other functions to handle.

Additional context
Discussion in Discord
Discussion thread in Discord

@XHawk87 XHawk87 added enhancement New feature or request server This issue requires changes to the server labels Jan 18, 2025
@XHawk87 XHawk87 self-assigned this Jan 18, 2025
@XHawk87 XHawk87 added the spec-file Related to Rulesets, Tilesets, Musicsets, Soundsets, etc. label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server This issue requires changes to the server spec-file Related to Rulesets, Tilesets, Musicsets, Soundsets, etc.
Projects
None yet
Development

No branches or pull requests

1 participant