Re: LibXmlRpc Improvements
Posted: 22 Oct 2014, 12:46
sorry my posting, but looks heavily that these modifications you ask -> are only for your use case of the game mode
Why I don't see a problem of fetching and keeping warmup status at your plugin class as you get the callbacks LibXmlRpc_BeginWarmup and LibXmlRpc_EndWarmup.
and why I do only see huge problems of modification of the generalized core system of game mode.
what if you then later need to adapt something else, or have another idea for the plugin, and then you are missing the callbacks, what then, ask nadeo again to enable them ?
Sorry argue with this, but you really should just modify your plugins code in this case, here's an example:
Why I don't see a problem of fetching and keeping warmup status at your plugin class as you get the callbacks LibXmlRpc_BeginWarmup and LibXmlRpc_EndWarmup.
and why I do only see huge problems of modification of the generalized core system of game mode.
what if you then later need to adapt something else, or have another idea for the plugin, and then you are missing the callbacks, what then, ask nadeo again to enable them ?
Sorry argue with this, but you really should just modify your plugins code in this case, here's an example:
Code: Select all
class myplugin {
     private $isWarmup = false;
     function LibXmlRpc_BeginWarmup() {
            $this->isWarmup = true;
      }
      function LibXmlRpc_EndWarmup() {
            $this->isWarmup = false;
      }
     function BeginRound($stuff) {
           if ($this->isWarmup) {
                    return;
           }
      // more stuff
     }
}
Â