12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- var Global = require("Global")
- var ProtocolGameServer = require("ProtocolGameServer")
- var GameProtocol = require("SGLBGameProtocol")
- cc.Class({
- extends: cc.Component,
- properties: {
- },
- statics: {
- makeGameData(m, s, data) {
- // switch (m) {
- // case ProtocolGameServer.MDM_GF_FRAME: {
- // return this.makeFrameGameData(s, data);
- // }
- // break;
- // case ProtocolGameServer.MDM_GF_GAME: {
- // return this.makeGFGameData(s, data);
- // }
- // break;
- // case ProtocolGameServer.MDM_GR_PRIVATE: {
- // return this.makePrivateGameData(s, data);
- // }
- // break;
- // default:
- // break;
- // }
- return null;
- },
- makeRoll: function (data) {//SUB_GR_TABLE_TALK
- var arrayBuffer = new ArrayBuffer(4 + 8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetInt32(dv, data.nJetton);
- return dv;
- },
- },
- start() {
- },
- });
|