maniaplanet / manialive-lib

LIB-ONLY. See "manialive" project instead.
1 stars 4 forks source link

updateRanking function in Storage.php is only for legacy modes. #11

Open w1lla opened 9 years ago

w1lla commented 9 years ago

Hi,

As i am working on a plugin for Trackmania in custom script modes made by Nadeo i get wrong values in the updateRankings due to the mismatch of callbacks.

I believe its better to do something like this:

add a function for modescriptcallbacks and for the callback of player scores or teamscores you can try to update the updateRankings function.

Same might go for the onEndMatch, EndRound.

Do not know if this is something usefull or not but it can be very handy.

Will try to work on it tomorrow and see it can be arranged so it has full support for both trackmania and shootmania.