コード例 #1
0
ファイル: UIPetSlot.cs プロジェクト: ftcaicai/ArkClient
	public void SetSlotInfo( sITEMVIEW _itemView)
	{
//		if( _itemView.nItemTableIdx == 0)
//			ReleaseSlot();
		
//		m_ItemView = _itemView;
		m_ItemIndex = _itemView.nItemTableIdx;
	}
コード例 #2
0
ファイル: UIPetImg.cs プロジェクト: ftcaicai/ArkClient
	public bool SetSlotImg_Item( sITEMVIEW _view)
	{
		m_State = eState.From_Item;

		Item item = ItemMgr.ItemManagement.GetItem( _view.nItemTableIdx);
		if(item != null)
			return _SetSlotImg_Item(item.ItemID);
		else
		{
			DeleteSlotImg();
			return false;
		}
	}
コード例 #3
0
ファイル: PartsRoot.cs プロジェクト: ftcaicai/ArkClient
    //---------------------------------------------------------------------
    /* functon */
    //---------------------------------------------------------------------
	
#if USE_OLD_COSTUME
	public static void SetParts( bool isCostumeOnOff, PartsRoot _partsRoot, Item.eEQUIP equip, sITEMVIEW norParts, sITEMVIEW cosParts )
	{		
		if( null == cosParts )
		{
			if( equip != Item.eEQUIP.Fairy && equip != Item.eEQUIP.Wing )
				_partsRoot.SetParts( equip, norParts );
			return;				
		}
		
		if( Item.eEQUIP.Wing == equip || Item.eEQUIP.Fairy == equip )
		{			
			_partsRoot.SetParts( equip, cosParts ); 
			return;
		}
		
		if( true == isCostumeOnOff )
		{				
			if( 0 == cosParts.nItemTableIdx || int.MaxValue == cosParts.nItemTableIdx )
			{
				_partsRoot.SetParts( equip, norParts );
				
			}
			else
			{
				_partsRoot.SetParts( equip, cosParts ); 	
			}					
		}	
		else
		{
			_partsRoot.SetParts( equip, norParts );
			/*if( 0 != norParts.nItemTableIdx && int.MaxValue != norParts.nItemTableIdx )
			{
				_partsRoot.SetParts( equip, norParts );					
			}
			else
			{
				_partsRoot.SetParts( equip, cosParts ); 
			}	*/		
		}
	}
コード例 #4
0
ファイル: PartsRoot.cs プロジェクト: ftcaicai/ArkClient
	public static void SetParts( int isCostumeOnOff, PartsRoot _partsRoot, Item.eEQUIP equip, sITEMVIEW norParts, sITEMVIEW cosParts )
	{		
		if( false == IsEquipView( equip, isCostumeOnOff ) )	
		{
			_partsRoot.SetEmpty(equip);
			return;
		}
		if( null == cosParts )
		{
			if( equip != Item.eEQUIP.Fairy && equip != Item.eEQUIP.Wing )
				_partsRoot.SetParts( equip, norParts );
			return;				
		}
		
		if( Item.eEQUIP.Wing == equip || Item.eEQUIP.Fairy == equip )
		{			
			_partsRoot.SetParts( equip, cosParts ); 
			return;
		}		
		 
		
		if( true == IsCostumeOn(equip, isCostumeOnOff) )
		{				
			if( 0 == cosParts.nItemTableIdx || int.MaxValue == cosParts.nItemTableIdx )
			{
				_partsRoot.SetParts( equip, norParts );
				
			}
			else
			{
				_partsRoot.SetParts( equip, cosParts ); 	
			}					
		}	
		else
		{
			_partsRoot.SetParts( equip, norParts );					
		}
	}	
コード例 #5
0
ファイル: UIPetInfoDlg.cs プロジェクト: ftcaicai/ArkClient
	public void ChangeEquip( sITEMVIEW _item)
	{
		if(_item.nItemTableIdx <= 0)
		{
			ReleaseEquip();
		}
		else
		{
			img2.SetSlotImg_Item(_item);

			Item item = ItemMgr.ItemManagement.GetItem(_item.nItemTableIdx);
			if(item == null)
			{
				txt_5accessory.Text = "undefined index(" + _item.nItemTableIdx + ")";
				return;
			}
			
			string str = item.ItemData.GetGradeColor() + AsTableManager.Instance.GetTbl_String( item.ItemData.nameId);
			if(_item.nStrengthenCount > 0)
				str = Color.white + "+" + _item.nStrengthenCount + " " + str;

			txt_5accessory.Text = str;
		}
	}
コード例 #6
0
ファイル: AsUserEntity.cs プロジェクト: ftcaicai/ArkClient
	protected void SetPetItemView( sITEMVIEW _view)
	{
		Msg_PetItemView view = new Msg_PetItemView( _view);
		HandleMessage( view);
	}
コード例 #7
0
ファイル: AsUserEntity.cs プロジェクト: ftcaicai/ArkClient
	protected void SetCharCosItemView( int iViewIndex, sITEMVIEW view)
	{
		if( m_sCosItemView.Length <= iViewIndex)
		{
			Debug.LogError( "AsUserEntity::SetCharCosItemView() m_sCosItemView.Length <= iViewIndex " + iViewIndex);
			return;
		}

		m_sCosItemView[ iViewIndex ]  = view;
		
		Item.eEQUIP curEquip = AsModel.GetPartsType( iViewIndex);
		if( false == PartsRoot.IsEquipView( curEquip, isCostumeOnOff ) )
		{
			return;
		}

		AsModel _Model = GetComponent( eComponentType.MODEL) as AsModel;
		if( null != _Model && false == _Model.isKeepDummyObj)
		{
			if( null != AssetbundleManager.Instance && true == AssetbundleManager.Instance.useAssetbundle)
				StartCoroutine( _Model.SetCosEqupParts_Coroutine( iViewIndex, view));
			else
				_Model.SetCosEqupParts( iViewIndex, view);
		}
	}
コード例 #8
0
ファイル: AsPetManager.cs プロジェクト: ftcaicai/ArkClient
	public void ReleaseEquip()
	{
		Item item = ItemMgr.ItemManagement.GetItem( m_PetInfo.itemView.nItemTableIdx);
		if( item == null)
			return;
		
		int iTargetSlot = ItemMgr.HadItemManagement.Inven.GetEmptyInvenSlot();
		if( -1 != iTargetSlot)
		{
			if( AsPStoreManager.Instance.UnableActionByPStore() == true)
			{
				AsHudDlgMgr.Instance.SetMsgBox( AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String( 126), AsTableManager.Instance.GetTbl_String( 365),
										null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE));
				return;
			}
			
			AsSoundManager.Instance.PlaySound( item.ItemData.m_strUseSound, Vector3.zero, false);
			AsCommonSender.SendMoveItem( AsPetManager.ePETINVENTORY, iTargetSlot);
		}
		else
		{
			AsHudDlgMgr.Instance.SetMsgBox( AsNotify.Instance.MessageBox( AsTableManager.Instance.GetTbl_String( 126), AsTableManager.Instance.GetTbl_String( 20),
							null, "", AsNotify.MSG_BOX_TYPE.MBT_OK, AsNotify.MSG_BOX_ICON.MBI_NOTICE));
		}
		
		m_PetInfo.itemView.nItemTableIdx = 0;
		m_PetInfo.itemView.nStrengthenCount = 0;
		
		sITEMVIEW itemView = new sITEMVIEW();
		itemView.nItemTableIdx = 0;
		itemView.nStrengthenCount = 0;
		
		if( m_PetDlg != null)
			m_PetDlg.ChangeEquip( itemView);
	}
コード例 #9
0
ファイル: AsUserInfo.cs プロジェクト: ftcaicai/ArkClient
	public void SetItemViews( sITEMVIEW[] view)
	{
		m_ItemViews = view;
		savedCharStat.sCharView = view;
	}
コード例 #10
0
ファイル: AsModel.cs プロジェクト: ftcaicai/ArkClient
	public void SetEqupParts( int iSlot, sITEMVIEW _view)
	{
		AsUserEntity entity = Entity as AsUserEntity;
		if( ( null != entity) && ( null != m_PartsRoot))
		{
			sITEMVIEW _cosItem = entity.getCosItemView[iSlot];			
			Item.eEQUIP curEquip = GetPartsType( iSlot);
			
			m_PartsRoot.SetStrengthenCount( entity.getCharView[0].nStrengthenCount);
			if( ( true == PartsRoot.IsCostumeOn( curEquip, entity.isCostumeOnOff) ) && ( null != _cosItem))
			{
				if( 0 == _cosItem.nItemTableIdx || int.MaxValue == _cosItem.nItemTableIdx)
				{
					m_PartsRoot.SetParts( curEquip, _view);
					m_PartsRoot.GenerateParts();
				}
				else if( Item.eEQUIP.Weapon == curEquip)
				{
					m_PartsRoot.SetParts( curEquip, _cosItem);
					m_PartsRoot.GenerateParts();
				}
			}
			else
			{
				m_PartsRoot.SetParts( curEquip, _view);
				m_PartsRoot.GenerateParts();
			}
		}
		else
		{
			Debug.LogError( "AsModel::SetEqupParts()[ null != entity && null != m_PartsRoot ]");
		}
	}
コード例 #11
0
ファイル: AsModel.cs プロジェクト: ftcaicai/ArkClient
	public IEnumerator SetCosEqupParts_Coroutine( int iSlot, sITEMVIEW _view)
	{
		m_PartsLoaded = false;

		while( eModelLoadingState.Finished != m_ModelLoadingState)
		{
			yield return null;
		}
		
		AsUserEntity entity = Entity as AsUserEntity;
		if( null != entity && null != m_PartsRoot)
		{		
			Item.eEQUIP curEquip = GetPartsType( iSlot);
			m_PartsRoot.SetStrengthenCount( entity.getCharView[0].nStrengthenCount);
			if( Item.eEQUIP.Fairy == curEquip || Item.eEQUIP.Wing == curEquip)
			{
				m_PartsRoot.SetParts( curEquip, _view);
				yield return StartCoroutine( m_PartsRoot.GenerateParts_Assetbundle());
				
			}
			else if( true == PartsRoot.IsCostumeOn( curEquip, entity.isCostumeOnOff) )
			{
				sITEMVIEW _norItem = entity.getCharView[iSlot];
				bool bExistEquip = !( 0 == _norItem.nItemTableIdx || int.MaxValue == _norItem.nItemTableIdx);
				bool bCurCosExist = !( 0 == _view.nItemTableIdx || int.MaxValue == _view.nItemTableIdx);
				
				if( false == bCurCosExist && true == bExistEquip)
				{
					m_PartsRoot.SetParts( curEquip, _norItem);
					yield return StartCoroutine( m_PartsRoot.GenerateParts_Assetbundle());
				}
				else
				{
					m_PartsRoot.SetParts( curEquip, _view);
					yield return StartCoroutine( m_PartsRoot.GenerateParts_Assetbundle());
				}
			}
		}
		else
		{
			Debug.LogError( "AsModel::SetCosEqupParts_Coroutine()[ null != entity && null != m_PartsRoot ]");
		}
		
		m_PartsLoaded = true;
	}
コード例 #12
0
ファイル: AsModel.cs プロジェクト: ftcaicai/ArkClient
	// SetEqupParts_Coroutine
	public IEnumerator SetEqupParts_Coroutine( int iSlot, sITEMVIEW _view)
	{
		m_PartsLoaded = false;

		while( eModelLoadingState.Finished != m_ModelLoadingState)
		{
			yield return null;
		}
		
		AsUserEntity entity = Entity as AsUserEntity;
		if( ( null != entity) && ( null != m_PartsRoot))
		{
			sITEMVIEW _cosItem = entity.getCosItemView[iSlot];			
			Item.eEQUIP curEquip = GetPartsType( iSlot);	
			
			m_PartsRoot.SetStrengthenCount( entity.getCharView[0].nStrengthenCount);
			
			if( ( null != _cosItem) && ( true == PartsRoot.IsCostumeOn( curEquip, entity.isCostumeOnOff) ) )
			{
				if( 0 == _cosItem.nItemTableIdx || int.MaxValue == _cosItem.nItemTableIdx)
				{
					m_PartsRoot.SetParts( curEquip, _view);
					yield return StartCoroutine( m_PartsRoot.GenerateParts_Assetbundle());
				}
				else if( Item.eEQUIP.Weapon == curEquip)
				{
					m_PartsRoot.SetParts( curEquip, _cosItem);
					yield return StartCoroutine( m_PartsRoot.GenerateParts_Assetbundle());
				}
			}
			else
			{
				m_PartsRoot.SetParts( curEquip, _view);
				yield return StartCoroutine( m_PartsRoot.GenerateParts_Assetbundle());
			}
		}
		else
		{
			Debug.LogError( "AsModel::SetEqupParts_Coroutine()[ null != entity && null != m_PartsRoot ]");
		}
		
		m_PartsLoaded = true;
	}
コード例 #13
0
	public Msg_PetItemView( sITEMVIEW _view)
	{
		m_MessageType = eMessageType.PET_ITEM_VIEW;
		
		view_ = _view;
	}
コード例 #14
0
ファイル: AsProtocol_Game.cs プロジェクト: ftcaicai/ArkClient
	public new void PacketBytesToClass( byte[] data)
	{
		Type infotype = this.GetType();
		FieldInfo headerinfo = null;

		int index = ParsePacketHeader( data);

		// eResult
		byte[] result = new byte[ sizeof( Int32)];
		headerinfo = infotype.GetField( "eResult", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, result, 0, sizeof( Int32));
		headerinfo.SetValue( this, BitConverter.ToInt32( result, 0));
		index += sizeof( Int32);

		body = new body_GC_CHAR_SELECT_RESULT_2();
		byte[] tmpData = new byte[body_GC_CHAR_SELECT_RESULT_2.size];
		Buffer.BlockCopy( data, index, tmpData, 0, tmpData.Length);
		index += body_GC_CHAR_SELECT_RESULT_2.size;
		body.ByteArrayToClass( tmpData);

#if USE_OLD_COSTUME
		// bCostumeOnOff
		byte[] ingame = new byte[ sizeof( bool)];
		headerinfo = infotype.GetField( "bCostumeOnOff", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, ingame, 0, sizeof( bool));
		headerinfo.SetValue( this, BitConverter.ToBoolean( ingame, 0));
		index += sizeof( bool);
#else
		// bCostumeOnOff
		byte[] ingame = new byte[ sizeof(Int32)];
		headerinfo = infotype.GetField( "bCostumeOnOff", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, ingame, 0, sizeof( bool));
		headerinfo.SetValue( this, BitConverter.ToInt32( ingame, 0));
		index += sizeof( Int32);
#endif

		sNormalItemVeiw = new sITEMVIEW[AsGameDefine.ITEM_SLOT_VIEW_COUNT];
		for ( int i = 0; i < AsGameDefine.ITEM_SLOT_VIEW_COUNT; i++)
		{
			sNormalItemVeiw[i] = new sITEMVIEW();
			
			tmpData = new byte[sITEMVIEW.size];
			Buffer.BlockCopy( data, index, tmpData, 0, tmpData.Length);
			sNormalItemVeiw[i].ByteArrayToClass( tmpData);
			index += sITEMVIEW.size;
		}

		sCosItemView = new sITEMVIEW[AsGameDefine.ITEM_SLOT_COS_VIEW_COUNT];
		for ( int i = 0; i < AsGameDefine.ITEM_SLOT_COS_VIEW_COUNT; i++)
		{
			sCosItemView[i] = new sITEMVIEW();

			tmpData = new byte[sITEMVIEW.size];
			Buffer.BlockCopy( data, index, tmpData, 0, tmpData.Length);
			sCosItemView[i].ByteArrayToClass( tmpData);
			index += sITEMVIEW.size;
		}

		byte[] channel = new byte[ sizeof( Int32)];
		headerinfo = infotype.GetField( "nChannel", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, channel, 0, sizeof( Int32));
		headerinfo.SetValue( this, BitConverter.ToInt32( channel, 0));
		index += sizeof( Int32);

		byte[] condition = new byte[ sizeof( UInt32)];
		headerinfo = infotype.GetField( "nCondition", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, condition, 0, sizeof( UInt32));
		headerinfo.SetValue( this, BitConverter.ToUInt32( condition, 0));
		index += sizeof( UInt32);

//		byte[] PvpPoint = new byte[ sizeof( Int32)];
//		headerinfo = infotype.GetField( "nPvpPoint", BINDING_FLAGS_PIG);
//		Buffer.BlockCopy( data, index, PvpPoint, 0, sizeof( Int32));
//		headerinfo.SetValue( this, BitConverter.ToInt32( PvpPoint, 0));
//		index += sizeof( Int32);

		byte[] YesterdayPvpRank = new byte[ sizeof( UInt32)];
		headerinfo = infotype.GetField( "nYesterdayPvpRank", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, YesterdayPvpRank, 0, sizeof( UInt32));
		headerinfo.SetValue( this, BitConverter.ToUInt32( YesterdayPvpRank, 0));
		index += sizeof( UInt32);

		byte[] YesterdayPvpPoint = new byte[ sizeof( Int32)];
		headerinfo = infotype.GetField( "nYesterdayPvpPoint", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, YesterdayPvpPoint, 0, sizeof( Int32));
		headerinfo.SetValue( this, BitConverter.ToInt32( YesterdayPvpPoint, 0));
		index += sizeof( Int32);

		byte[] YesterdayPvpRankRate = new byte[ sizeof( UInt32)];
		headerinfo = infotype.GetField( "nYesterdayPvpRankRate", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, YesterdayPvpRankRate, 0, sizeof( UInt32));
		headerinfo.SetValue( this, BitConverter.ToUInt32( YesterdayPvpRankRate, 0));
		index += sizeof( UInt32);

		byte[] RankPoint = new byte[ sizeof( Int32)];
		headerinfo = infotype.GetField( "nRankPoint", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, RankPoint, 0, sizeof( Int32));
		headerinfo.SetValue( this, BitConverter.ToInt32( RankPoint, 0));
		index += sizeof( Int32);
		
		byte[] LevelComplete = new byte[ sizeof( Int32)];
		headerinfo = infotype.GetField( "nLevelComplete", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, LevelComplete, 0, sizeof( Int32));
		headerinfo.SetValue( this, BitConverter.ToInt32( LevelComplete, 0));
		index += sizeof( Int32);

		byte freeGacha = 0;
		headerinfo = infotype.GetField("nFreeGachaPoint", BINDING_FLAGS_PIG);
		freeGacha = data[index];
		headerinfo.SetValue(this, freeGacha);
		index += sizeof(byte);

		byte[] ResurrectionCnt = new byte[ sizeof( Int32)];
		headerinfo = infotype.GetField( "nResurrectionCnt", BINDING_FLAGS_PIG);
		Buffer.BlockCopy( data, index, ResurrectionCnt, 0, sizeof( Int32));
		headerinfo.SetValue( this, BitConverter.ToInt32( ResurrectionCnt, 0));
		index += sizeof( Int32);
	}
コード例 #15
0
ファイル: PartsRoot.cs プロジェクト: ftcaicai/ArkClient
	public void SetParts(Item.eEQUIP eParts, sITEMVIEW itemView )
    {
		if( null == itemView )
		{
			Debug.LogError("PartsRoot::SetParts()[ null == itemView ]" );
			return;
		}
		
		SetParts( eParts, itemView.nItemTableIdx, itemView.nStrengthenCount );
    }
コード例 #16
0
ファイル: AsModel.cs プロジェクト: ftcaicai/ArkClient
	// SetCosEqupParts
	public void SetCosEqupParts( int iSlot, sITEMVIEW _view)
	{
		AsUserEntity entity = Entity as AsUserEntity;
		if( ( null != entity) && ( null != m_PartsRoot))
		{			
			Item.eEQUIP curEquip = GetPartsType( iSlot);
			
			m_PartsRoot.SetStrengthenCount( entity.getCharView[0].nStrengthenCount);
			
			if( Item.eEQUIP.Fairy == curEquip || Item.eEQUIP.Wing == curEquip)
			{
				m_PartsRoot.SetParts( curEquip, _view);
				m_PartsRoot.GenerateParts();
			}
			else if( true == PartsRoot.IsCostumeOn( curEquip, entity.isCostumeOnOff) )
			{
				sITEMVIEW _norItem = entity.getCharView[iSlot];
				bool bExistEquip = !( 0 == _norItem.nItemTableIdx || int.MaxValue == _norItem.nItemTableIdx);
				bool bCurCosExist = !( 0 == _view.nItemTableIdx || int.MaxValue == _view.nItemTableIdx);
				
				if( false == bCurCosExist && true == bExistEquip)
				{
					m_PartsRoot.SetParts( curEquip, _norItem);
					m_PartsRoot.GenerateParts();
				}
				else
				{
					m_PartsRoot.SetParts( curEquip, _view);
					m_PartsRoot.GenerateParts();
				}
			}
		}
		else
		{
			Debug.LogError( "AsModel::SetCosEqupParts()[ null != entity && null != m_PartsRoot ]");
		}
	}
コード例 #17
0
ファイル: EntityClass.cs プロジェクト: ftcaicai/ArkClient
	public OtherCharacterAppearData(AS_SC_OTHER_CHAR_APPEAR_2 _data)
	{
		creationType_ = eCreationType.OTHER_CHAR_APPEAR;
		
		sessionKey_ = _data.nSessionIdx;
		uniqKey_ = _data.nCharUniqKey;
		charName_ = Encoding.UTF8.GetString(_data.szCharName);
		guildName_ = Encoding.UTF8.GetString( _data.szGuildName);
		
		race_ = _data.eRace;
		class_ = _data.eClass;
#if !NEW_DELEGATE_IMAGE
		userGender = _data.eUserGender;
#endif
		gender_ = _data.eGender;
		#region -GMMark
		isGM = _data.bIsGM;
		#endregion
		hair_ = _data.nHair;
		hairColor_ = _data.nHairColor;
		
		level_ = _data.nLevel;
//		totExp_ = _data.nTotExp;
		
		hpCur_ = _data.fHpCur;
		hpMax_ = _data.fHpMax;
//		mpCur_ = _data.nMpCur;
//		mpMax_ = _data.nMpMax;
		designationID = _data.nSubTitleTableIdx;
		
		moveSpeed_ = _data.nMoveSpeed * 0.01f;
		atkSpeed_ = _data.nAtkSpeed;
		
		curPosition_ = _data.sCurPosition;
		destPosition_ = _data.sDestPosition;
//		attDistance_ = _data.fAttDistance;
		
		surverData = _data;
		
//		shopOpening_ = _data.bIsPrivateShop;
		if(shopOpening_ == true)
			Debug.Log("OtherCharacterAppearData::ctor: Shop opening(id:" + uniqKey_);
		
		hide_ = _data.bHide;
		//nPvpPoint_ = _data.nPvpPoint;
		nYesterdayPvpRank = _data.nYesterdayPvpRank;
		nYesterdayPvpPoint = _data.nYesterdayPvpPoint;
		nYesterdayPvpRankRate = _data.nYesterdayPvpRankRate;
#if !NEW_DELEGATE_IMAGE
		nRankPoint_ = _data.nRankPoint;
#endif
		bSubTitleHide = _data.bSubTitleHide;
		
		criticalChance = _data.bCriticalChance;
		dodgeChance = _data.bDodgeChance;
		nPetTableIdx_ = _data.nPetTableIdx;
		szPetName_ = _data.szPetName;
		sPetItem_ = _data.sPetItem;
//		nPetLevel = _data.nPetLevel;

#if NEW_DELEGATE_IMAGE
		nDelegateImageTableIndex = _data.nDelegateImageTableIndex;
#endif
	}
コード例 #18
0
ファイル: AsUserEntity.cs プロジェクト: ftcaicai/ArkClient
	public void ReceiveItemViewSlot( int iSlot, sITEMVIEW view)
	{
		switch( iSlot)
		{
		case 0:
			SetCharView( 0, view);
			break;
		case 1:
			SetCharView( 1, view);
			break;
		case 2:
			SetCharView( 2, view);
			break;
		case 3:
			SetCharView( 3, view);
			break;
		case 4:
			SetCharView( 4, view);
			break;
		case 10:
			SetCharCosItemView( 0, view);
			break;
		case 11:
			SetCharCosItemView( 1, view);
			break;
		case 12:
			SetCharCosItemView( 2, view);
			break;
		case 13:
			SetCharCosItemView( 3, view);
			break;
		case 14:
			SetCharCosItemView( 4, view);
			break;
		case 15:
			SetCharCosItemView( Inventory.wingEquipSlotIdx, view);
			break;
		case 16:
			SetCharCosItemView( Inventory.fairyEquipSlotIdx, view);
			break;
		case 10000://$yde
			SetPetItemView( view);
			if(FsmType == eFsmType.PLAYER)
				AsPetManager.Instance.SetPetEquip(view);

//			HandleMessage(new Msg_PetItemView(view));
			break;
		default:
			Debug.LogError( "AsUserEntity::ReceiveItemViewSlot()[ error ] slot: " + iSlot +" [ item idx : " + view.nItemTableIdx);
			break;
		}
	}
コード例 #19
0
ファイル: AsUserInfo.cs プロジェクト: ftcaicai/ArkClient
	public void SetCosItemView( sITEMVIEW[] view)
	{
		m_sCosItemView = view;
		savedCharStat.sCosItemView = view;
	}
コード例 #20
0
ファイル: AsPetManager.cs プロジェクト: ftcaicai/ArkClient
	public void SetPetEquip( sITEMVIEW _slot)
	{
		m_PetInfo.itemView.nItemTableIdx = _slot.nItemTableIdx;
		m_PetInfo.itemView.nStrengthenCount = _slot.nStrengthenCount;
		
		sITEMVIEW itemView = new sITEMVIEW();
		itemView.nItemTableIdx = _slot.nItemTableIdx;
		itemView.nStrengthenCount = _slot.nStrengthenCount;
		
		if( m_PetDlg != null)
			m_PetDlg.ChangeEquip( itemView);
	}