MakeSGLBXieYi.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. var Global = require("Global")
  2. var ProtocolGameServer = require("ProtocolGameServer")
  3. var GameProtocol = require("SGLBGameProtocol")
  4. cc.Class({
  5. extends: cc.Component,
  6. properties: {
  7. },
  8. statics: {
  9. makeGameData(m, s, data) {
  10. // switch (m) {
  11. // case ProtocolGameServer.MDM_GF_FRAME: {
  12. // return this.makeFrameGameData(s, data);
  13. // }
  14. // break;
  15. // case ProtocolGameServer.MDM_GF_GAME: {
  16. // return this.makeGFGameData(s, data);
  17. // }
  18. // break;
  19. // case ProtocolGameServer.MDM_GR_PRIVATE: {
  20. // return this.makePrivateGameData(s, data);
  21. // }
  22. // break;
  23. // default:
  24. // break;
  25. // }
  26. return null;
  27. },
  28. makeRoll: function (data) {//SUB_GR_TABLE_TALK
  29. var arrayBuffer = new ArrayBuffer(4 + 8);
  30. var dv = new DataView(arrayBuffer);
  31. dv.pos = 8;
  32. Global.SetInt32(dv, data.nJetton);
  33. return dv;
  34. },
  35. },
  36. start() {
  37. },
  38. });