sIKE23 / Mage-Wars

Mage Wars for OCTGN
7 stars 5 forks source link

Provide better recovery when players disconnect/reconnects to games #266

Open sIKE23 opened 9 years ago

sIKE23 commented 9 years ago

There are two events (the names change from API 3.1.0.1 and API 3.1.0.2) that help mange when players disconnect: OnPlayerLeaveGame/OnPlayerQuit and OnPlayerConnect/OnPlayerConnected. Research and implement (if needed) these events to help players recover better from a reset.

We will need to look at what game data we are storing in variables and if need be move them from Python Global Variables to OCTGN Global Variables, since they are not reset upon the reconnect.