Beispiel #1
0
	void SetSkillData(Tbl_MonsterSkill_Record _record)
	{
		if(_record != null && _record.SkillName_Index != int.MaxValue)
		{
			m_SkillName = AsTableManager.Instance.GetTbl_String(_record.SkillName_Index);
			m_SkillNamePrint = _record.SkillName_Print;
		}
		else
		{
//			Debug.LogWarning("BuffElement::SetSkillData: there is no [" + _record.Index + "] skill record's skill name.");
		}
	}
	public Msg_NpcAttackChar1( AS_SC_NPC_ATTACK_CHAR_1 _info)
	{
		m_MessageType = eMessageType.NPC_ATTACK_CHAR1;

		npcId_ = _info.nNpcIdx;

		sessionId_ = _info.nSessionIdx;
		charUniqKey_ = _info.nCharUniqKey;

		hpCur_ = _info.nHpCur;

		attacker_ = AsEntityManager.Instance.GetNpcEntityBySessionId( npcId_);
		skillLv_ = AsTableManager.Instance.GetTbl_MonsterSkillLevel_Record( _info.nMonsterSkillLevelTableIdx);
		skill_ = AsTableManager.Instance.GetTbl_MonsterSkill_Record( skillLv_.Skill_GroupIndex);
		action_ = AsTableManager.Instance.GetTbl_MonsterAction_Record( skillLv_.SkillAction_Index);

		casting_ = _info.bCasting;
		castingMilliSec_ = _info.nCastingMilliSec;
		ready_ = _info.bReady;

		if( true == casting_)
			Debug.Log( "true == casting_");

		foreach( AS_SC_NPC_ATTACK_CHAR_2 attack2 in _info.bodyChar)
		{
			bodyChar_.Add( new Msg_NpcAttackChar2( this, attack2));
		}

		foreach( AS_SC_NPC_ATTACK_CHAR_3 attack3 in _info.bodyNpc)
		{
			bodyNpc_.Add( new Msg_NpcAttackChar3( this, attack3));
		}
	}
Beispiel #3
0
	void BalloonProcess( Tbl_MonsterSkill_Record _skill, Tbl_MonsterSkillLevel_Record _skillLv)
	{
		List<Tbl_SkillLevel_Potency> list = new List<Tbl_SkillLevel_Potency>();
		
		for(int i=0; i<_skill.listSkillPotency.Count; ++i)
		{
			Tbl_Skill_Potency potency = _skill.listSkillPotency[i];
			Tbl_SkillLevel_Potency lvPotency = _skillLv.listSkillLevelPotency[i];
			
			if(potency.Potency_Type == ePotency_Type.Balloon)
				list.Add( lvPotency);
		}
		
		if( list.Count > 0)
			m_Owner.HandleMessage( new Msg_BalloonIndicate( list[ Random.Range( 0, list.Count)]));
	}
Beispiel #4
0
	public override void LoadTable(string _path)
	{				
		try
		{			
			if( (null != AssetbundleManager.Instance && true == AssetbundleManager.Instance.useAssetbundle) || true == AsTableManager.Instance.useReadBinary )
			{
				// Ready Binary
				TextAsset textAsset = ResourceLoad.LoadTextAsset( _path);
				MemoryStream stream = new MemoryStream( textAsset.bytes);
				BinaryReader br = new BinaryReader( stream);
				
				int nCount = br.ReadInt32();
				
				
				for( int i = 0; i < nCount; i++)
				{
					Tbl_MonsterSkill_Record record = new Tbl_MonsterSkill_Record( br);
					m_ResourceTable.Add(record.Index, record);				
				}
				
				br.Close();
				stream.Close();
				
			}
			else				
			{
				XmlElement root = GetXmlRootElement(_path);
				XmlNodeList nodes = root.ChildNodes;
				
				foreach(XmlNode node in nodes)
				{
					Tbl_MonsterSkill_Record record = new Tbl_MonsterSkill_Record((XmlElement)node);
					m_ResourceTable.Add(record.Index, record);
				}
			}
			
		}
		catch(System.Exception e)
		{
			Debug.LogError("[Tbl_MonsterSkill_Table] LoadTable:|" + e + "| error while parsing");
		}
	}