beyond-all-reason / spring

A powerful free cross-platform RTS game engine
https://beyond-all-reason.github.io/spring/
Other
182 stars 95 forks source link

Add some sort of `Spring.SendChatMessage` #1582

Open sprunk opened 1 week ago

sprunk commented 1 week ago

Right now you have to manually invoke the /say command via Spring.SendCommands, and for ally/spectator chat you gotta append the a: or s: manually as well.

Add explicit functions, for example SendPublicChatMessage(str), SendAllyChatMessage(str), SendSpectatorChatMessage(str), and SendPrivateChatMessage(playerID, str).