123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- var BaseDefine = require("BaseDefine")
- var Global = require("Global")
- var ProtocolActiveServer = require("ProtocolActiveServer")
- import { SendPacketHelper } from 'PacketHelper'
- cc.Class({
- extends: cc.Component,
- properties: {
- },
- statics: {
- GetActivityIndianaConfig: function (data) {//SUB_GP_INDIANA_GET_CONFIG
- var arrayBuffer = new ArrayBuffer(4 + 8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwCurrentID);
- return dv;
- },
- ActivityIndianaExchang:function(data){//SUB_GP_INDIANA_EXCHANGE
- var arrayBuffer = new ArrayBuffer(12+8);
- var dv = new DataView(arrayBuffer);
- dv.pos =8;
- Global.SetUint32(dv, data.dwUserID);
- Global.SetUint32(dv, data.dwCurrentID);
- Global.SetUint32(dv, data.dwCount);
- return dv;
- },
- ActivityIndianaGetTicket:function(data){//SUB_GP_INDIANA_GET_TICKET
- var arrayBuffer = new ArrayBuffer(4+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- return dv;
- },
- GetActivityIndianaUsers:function(data){//SUB_GP_INDIANA_GET_USERS
- var arrayBuffer = new ArrayBuffer(4+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- return dv;
- },
- GetActivityShopGetGoods:function(data){//SUB_GA_SHOP_GET_GOODS
- var arrayBuffer = new ArrayBuffer(4+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- return dv;
- },
-
- ActivityShopExchange:function(data){//SUB_GA_SHOP_EXCHANGE
- var arrayBuffer = new ArrayBuffer(12+8);
- var dv = new DataView(arrayBuffer);
- dv.pos =8;
- Global.SetUint32(dv, data.dwUserID);
- Global.SetUint32(dv, data.dwGoodsID);
- Global.SetUint32(dv, data.dwCount);
- return dv;
- },
- GetActivityShopGetUserRecord:function(data){//SUB_GA_SHOP_GET_RECORD
- var arrayBuffer = new ArrayBuffer(4+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- return dv;
- },
- ClearActivityShopUserRecord:function(data){//SUB_GA_SHOP_CLEAR_RECORD
- var arrayBuffer = new ArrayBuffer(4+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- return dv;
- },
- GetActivityTurntableInfo:function(data){//SUB_GA_TURNTABLE_GET_INFO
- var arrayBuffer = new ArrayBuffer(4+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- return dv;
- },
- ActivityTurntableAddTimes:function(data){//SUB_GA_TURNTABLE_ADD_TIMES
- var arrayBuffer = new ArrayBuffer(8+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- Global.SetUint32(dv, data.dwType);
- return dv;
- },
- ActivityTurntableUse:function(data){//SUB_GA_TURNTABLE_USE
- var arrayBuffer = new ArrayBuffer(4+8);
- var dv = new DataView(arrayBuffer);
- dv.pos = 8;
- Global.SetUint32(dv, data.dwUserID);
- return dv;
- }
- },//statics
- start() {
- },
- });
|