qsb-dev / quantum-space-buddies

Quantum Space Buddies ( QSB ) is a multiplayer mod for Outer Wilds.
https://outerwildsmods.com/mods/quantumspacebuddies
GNU Affero General Public License v3.0
90 stars 22 forks source link

Chat Interaction in API #645

Closed GameWyrm closed 1 year ago

GameWyrm commented 1 year ago

Reading the API, I realized that there's no way to interface with the QSB chat with an addon via the API. I would appreciate some integration with a couple of API additions:

event OnChatMessage(string message, int senderID) Runs whenever a chat message is sent. "message" is the contents of the message, excluding the name of the sender. "senderID" is just the internal identifier of the sender. Server messages, like "PlayerName joined" have the senderID of -1.

void SendChatMessage(string message) Sends something to the QSB chat to all players.