Ejemplo n.º 1
0
//	public Tbl_Action_Effect(float _timing, string _fileName, eLinkType _linkType, eLoopType _loopType, float _loopDuration, float _startSize)
//	{
//		m_Timing = _timing * 0.001f;
//		m_FileName = _fileName;
//		m_LinkType = _linkType;
//		m_LoopType = _loopType;
//		m_LoopDuration = _loopDuration;
//		m_StartSize = _startSize;
//	}
	
	public Tbl_Action_Effect(Tbl_Action_Record _action, float _timing, string _fileName, eLinkType _linkType, eLoopType _loopType, float _loopDuration, bool _positionFix, float _startSize)
	{
		m_Action = _action;
		
		m_Timing = _timing * 0.001f;
		m_FileName = _fileName;
		m_LinkType = _linkType;
		m_LoopType = _loopType;
		m_LoopDuration = _loopDuration;
		m_PositionFix = _positionFix;
		m_StartSize = _startSize;
	}
Ejemplo n.º 2
0
	public EffectElement(Tbl_Action_Effect _effect, AsBaseEntity _owner, Vector3 _pos, Transform _targetTrn, float _animSpeed)
	{
		if(_animSpeed == 0f) Debug.LogError("BuffProcessor::EffectElement: _animSpeed = 0");
		
		m_Effect = _effect;
		
		m_Owner = _owner;
		
		m_EffectName = _effect.FileName;
		m_Timing = _effect.Timing;// / _animSpeed;
		m_LoopType = _effect.LoopType;
		m_LinkType = _effect.LinkType;
		m_LoopDuration = _effect.LoopDuration;
		m_PositionFix = _effect.PositionFix;
		
		m_SetTime = Time.time;
		m_Pos = _pos;
		m_TargetTrn = _targetTrn;
		if( m_TargetTrn != null)
			m_PositionCached = m_TargetTrn.position;
		
		m_AnimSpeed = _animSpeed;
	}
Ejemplo n.º 3
0
	public Tbl_Action_Sound(float _timing, string _fileName, eLoopType _loopType)
	{
		m_Timing = _timing * 0.001f;
		m_FileName = _fileName;
		m_LoopType = _loopType;
	}
Ejemplo n.º 4
0
	public Tbl_Action_HitAnimation(string _fileName, float _speed, eLoopType _loop, float _loopTargetTime, float _loopDuration, float _animationLength, eHitMoveType _moveType, float _moveDistance) :
		base(_fileName, _speed, _loop, _loopTargetTime, _loopDuration, _animationLength)
	{
		m_MoveType = _moveType;
		m_MoveDistance = _moveDistance;
	}
Ejemplo n.º 5
0
	public Tbl_Action_Animation(string _fileName, float _speed, eLoopType _loop, float _loopTargetTime, float _loopDuration, float _animationLength)
//		List<Tbl_Action_Effect> _effects, List<Tbl_Action_Sound> _sounds, List<Tbl_Action_Trail> _trails, List<Tbl_Action_Cancel> _cancels)
	{
		m_FileName = _fileName;
		m_ActionSpeed = _speed;
		m_LoopType = _loop;
		m_LoopTargetTime = _loopTargetTime;
		m_LoopDuration = _loopDuration;
		m_AnimationLength = _animationLength;
		
//		m_listEffect = _effects;
//		m_listSound = _sounds;
//		m_listTrail = _trails;
//		m_listCancel = _cancels;
	}