EvoEsports / EvoSC-sharp

A Trackmania Server Controller written in C# using .NET 8
https://evosc.io
GNU General Public License v3.0
20 stars 13 forks source link

Simplify async Manialink data exchange pattern #156

Open snixtho opened 1 year ago

snixtho commented 1 year ago

Is your feature request related to a problem? Please describe. Sending data to the controller through actions is quite easy already. But what about async data to the Manialink? The common technique for this is to send a Manialink with some Maniascript that contains the data to be sent. The manialink then continously checks if there is new data sent using the for This statement.

Describe the solution you'd like We should look into simplifying this so that developers do not have to set up the boilerplate code every time.

Describe alternatives you've considered One solution could be to automate the creation of the data update Manialink and include some easy new data detection functionality in Maniascript.