• Just for anyone else, you can write functions that get called on init and kill. kill is called before the reset happens, and init happens after...

    /*JSON{
      "type" : "init",
      "generate" : "jswrap_net_init"
    }*/
    void jswrap_net_init() {
    }
    
    /*JSON{
      "type"     : "kill",
      "generate" : "jswrap_net_kill"
    }*/
    void jswrap_net_kill() {
    }
    
About

Avatar for Gordon @Gordon started