// ============================ S - C ==============================.
        private bool DidReceiveGameStation(int wHandleCode, byte[] wByteBuffer, int wDataSize)
        {
            int dataLen = wByteBuffer.Length;

            if (dataLen < wDataSize)
            {
                Debug.LogError("Game Station Data Error !");
                return(false);
            }

            CMD_SC_GF_GAME_STATION gameStationS = GameConvert.ByteToStruct <CMD_SC_GF_GAME_STATION>(wByteBuffer, wByteBuffer.Length);


            if (onLoadGameStationSuccessEvent != null)
            {
                onLoadGameStationSuccessEvent(gameStationS);
            }



//			Debug.Log("****************************************");
//			Debug.Log("GAME_STATION_JI_TAI==========="+gameStationS.gsJiTaiLeiXing);
//			Debug.Log("GAME_STATION_GAME_RATE========"+gameStationS.gsGameRate);
//			Debug.Log("GAME_STATION_POWER_MIN========"+gameStationS.gsPowerMin);
//			Debug.Log("GAME_STATION_PEAK============="+gameStationS.gsPeak);
//			Debug.Log("GAME_STATION_SERVER_TIME======"+gameStationS.gsServerTime);
//			Debug.Log("GAME_STATION_MAP_ID==========="+gameStationS.gsMapID);
//			Debug.Log("GAME_STATION_SELF_VOUCHER====="+gameStationS.gsSelfVoucher);
//			Debug.Log("****************************************");

            return(true);
        }
Пример #2
0
 // v ========== S - C ==========.
 public void S_C_GameStation(CMD_SC_GF_GAME_STATION _gameStateS)
 {
     CanonCtrl.Instance.Init((int)_gameStateS.gsJiTaiLeiXing,
                             (int)_gameStateS.gsToUBiRate,
                             (int)_gameStateS.gsGameRate,
                             (int)_gameStateS.gsPowerMin,
                             (int)_gameStateS.gsPowerMax,
                             (int)_gameStateS.gsPowerStep,
                             (int)_gameStateS.gsPowerMultiMax,
                             _gameStateS.gsPeak,
                             _gameStateS.gsServerTime,
                             (int)_gameStateS.gsMapID,
                             _gameStateS.gsMapTime,
                             (int)_gameStateS.gsSelfChair,
                             (int)_gameStateS.gsSelfUserId,
                             (int)_gameStateS.gsSelfGold,
                             (int)_gameStateS.gsSelfVoucher
                             );
 }