@xmobitea/gn-server 2.6.5 → 2.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/LICENSE +198 -5
  2. package/apiReferences/Authenticate.json +1328 -1
  3. package/apiReferences/CharacterPlayer.json +3199 -1
  4. package/apiReferences/CloudScript.json +278 -1
  5. package/apiReferences/Content.json +324 -1
  6. package/apiReferences/GamePlayer.json +3844 -1
  7. package/apiReferences/Group.json +2454 -1
  8. package/apiReferences/Inventory.json +1964 -1
  9. package/apiReferences/MasterAdmin.json +5569 -1
  10. package/apiReferences/MasterPlayer.json +5924 -1
  11. package/apiReferences/Multiplayer.json +545 -1
  12. package/apiReferences/StoreInventory.json +1290 -1
  13. package/dist/GN-app-api/handler/controller/handler/characterPlayer/model/GroupMemberParam.d.ts +0 -1
  14. package/dist/GN-app-api/handler/controller/handler/cloudScript/ExecuteFunctionRequestHandler.d.ts +1 -1
  15. package/dist/GN-app-api/handler/controller/handler/group/model/GroupMemberParam.d.ts +0 -1
  16. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerBanRequestHandler.d.ts +2 -0
  17. package/dist/GN-app-api/service/CloudScriptEventService.d.ts +144 -0
  18. package/dist/GN-app-api/service/CloudScriptService.d.ts +1 -1
  19. package/dist/GN-app-api/service/EventCallbackService.d.ts +9 -17
  20. package/dist/GN-app-api/service/ICloudScriptService.d.ts +2 -2
  21. package/dist/GN-app-api/service/IEventCallbackService.d.ts +0 -14
  22. package/dist/GN-app-api/{handler/controller/handler/multiplayer/MatchmakingHandler.d.ts → service/IMatchmakingService.d.ts} +2 -19
  23. package/dist/GN-app-api/service/MatchmakingService.d.ts +21 -0
  24. package/dist/GN-startup/cloudScript/CloudScriptAdmin.ts +74 -0
  25. package/dist/GN-startup/cloudScript/CloudScriptDatabase.ts +93 -0
  26. package/dist/GN-startup/cloudScript/CloudScriptEvent.ts +158 -0
  27. package/dist/GN-startup/cloudScript/CloudScriptHttp.ts +31 -0
  28. package/dist/GN-startup/cloudScript/CloudScriptMail.ts +26 -0
  29. package/dist/GN-startup/cloudScript/CloudScriptMatchmaking.ts +14 -0
  30. package/dist/GN-startup/cloudScript/CloudScriptPushNotification.ts +65 -0
  31. package/dist/GN-startup/cloudScript/CloudScriptSocket.ts +64 -0
  32. package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +59 -17
  33. package/dist/GN-startup/cloudScript/templateCloudScript.ts +26 -385
  34. package/dist/GN-startup/cloudScript/templateEventCallback.ts +301 -509
  35. package/dist/GN-startup/middleware/ApiMiddleware.d.ts +1 -0
  36. package/dist/GN-startup/routes/SocketAppHandler.d.ts +7 -0
  37. package/dist/GNServer.d.ts +5 -1
  38. package/dist/RequestControllerUtils.d.ts +4 -0
  39. package/dist/index.d.ts +1 -1
  40. package/package.json +3 -3
  41. package/syncCode.js +1394 -0
  42. package/index.js +0 -26
package/index.js DELETED
@@ -1,26 +0,0 @@
1
- const fs = require("fs");
2
-
3
- const optionsPath = __dirname + "/./GNconfig.debug.json";
4
- let optionStr = fs.readFileSync(optionsPath).toString();
5
- let fullOptions = JSON.parse(optionStr);
6
- let options = fullOptions.options;
7
-
8
- const { ServerApplicationStartup, Debug } = require("./dist/index");
9
-
10
- let applicationStartup = new ServerApplicationStartup();
11
- applicationStartup.config(options);
12
- applicationStartup.run();
13
-
14
- let gnServer = applicationStartup.getGNServer();
15
-
16
- process.on("uncaughtException", (uncaughtException) => {
17
- Debug.log("Uncaught Exception at: %s - message: %s", uncaughtException.stack, uncaughtException.message);
18
- });
19
-
20
- process.on("uncaughtError", (uncaughtException) => {
21
- Debug.log("Uncaught Error at: %s - message: %s", uncaughtException.stack, uncaughtException.message);
22
- });
23
-
24
- process.on("unhandledRejection", (reason) => {
25
- Debug.log("Unhandled Rejection at: %s - message: %s", reason.stack, reason.message);
26
- });