public void SetPrivateShopInfo(body1_GC_CHAR_LOAD_RESULT _result) { m_RemainTime = (float)_result.nPrivateShopRemainingTime; }
public void SetPrivateShopInfo( body1_GC_CHAR_LOAD_RESULT _result) { m_nPrivateShopOpenCharUniqKey = _result.nPrivateShopOpenCharUniqKey; m_nPrivateShopCreateItemSlot = _result.nPrivateShopCreateItemSlot; // m_nPrivateShopRemainingTime = _result.nPrivateShopRemainingTime; // m_nPrivateShopMaxOpenTime = _result.nPrivateShopMaxOpenTime; // m_nPrivateShopOpenTime = _result.nPrivateShopOpenTime; }
private void CharacterLoadResult( byte[] _packet) { Debug.Log( "CharacterLoadResult"); body1_GC_CHAR_LOAD_RESULT result = new body1_GC_CHAR_LOAD_RESULT(); result.PacketBytesToClass( _packet); if( eRESULTCODE.eRESULT_SUCC != result.eResult) { AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String(4086), AsTableManager.Instance.GetTbl_String(399), null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_ERROR); return; } if( 0 > result.nLastSelectCharSlot) { AsUtil.ShutDown( "Latest char slot : " + result.nLastSelectCharSlot); return; } Debug.Log( "Miracle = " + result.nMiracle); AsUserInfo.Instance.nMiracle = result.nMiracle; AsUserInfo.Instance.latestCharSlot = result.nLastSelectCharSlot; //$yde AsUserInfo.Instance.SetPrivateShopInfo( result); AsPStoreManager.Instance.SetPrivateShopInfo( result); AsCharacterSlotManager.PossibleCharCreate = result.bPossibleCharCreate; for( int i = 0; i < result.nEnableSlotCnt; i++) { bool charGenerated = false; for( int j=0; j<result.nCharCnt; j++) { if( result.sCharView[j].nCharSlot == i) { AsUserInfo.Instance.AddCharacter( result.sCharView[j]); charGenerated = true; break; } } if( charGenerated == false) { AsUserInfo.Instance.AddEmptySlot(); } } m_bLoginSelectResponse = true; }