// Learn cc.Class: // - [Chinese] http://www.cocos.com/docs/creator/scripting/class.html // - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/class/index.html // Learn Attribute: // - [Chinese] http://www.cocos.com/docs/creator/scripting/reference/attributes.html // - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/reference/attributes/index.html // Learn life-cycle callbacks: // - [Chinese] http://www.cocos.com/docs/creator/scripting/life-cycle-callbacks.html // - [English] http://www.cocos2d-x.org/docs/editors_and_tools/creator-chapters/scripting/life-cycle-callbacks/index.html var ProtocolGameServer = require("ProtocolGameServer") var BaseDefine = require("BaseDefine") var Global = require("Global") cc.Class({ extends: cc.Component, properties: { }, statics: { analyzeData(m, s, dataview) { if (m != ProtocolLoginServer.MDM_GP_LOGON) { return null; } switch (s) { case ProtocolLoginServer.SUB_GP_LOGON_SUCCESS: { //return this.analyzeLogonSuccessData(dataview); } break; default: break; } return null; }, }, start () { }, // update (dt) {}, });