コード例 #1
0
 /// <summary>
 /// Creates a new AreaAura that will auto-trigger the given Spell on everyone, according
 /// to the given SpellParameters.
 /// </summary>
 /// <param name="distributedSpell"></param>
 public AreaAura(WorldObject holder, Spell distributedSpell, ISpellParameters prms)
 {
     this.Init(holder, distributedSpell);
     this.m_params           = prms;
     this.m_remainingCharges = this.m_params.MaxCharges;
     this.m_radius           = (float)prms.Radius;
     this.Start((ITickTimer)null, true);
 }
コード例 #2
0
ファイル: AreaAura.cs プロジェクト: 0xFh/Asda2-Project
 /// <summary>
 /// Creates a new AreaAura that will auto-trigger the given Spell on everyone, according
 /// to the given SpellParameters.
 /// </summary>
 /// <param name="distributedSpell"></param>
 public AreaAura(WorldObject holder, Spell distributedSpell, ISpellParameters prms)
 {
     Init(holder, distributedSpell);
     m_params           = prms;
     m_remainingCharges = m_params.MaxCharges;
     m_radius           = prms.Radius;
     Start(null, true);
 }
コード例 #3
0
ファイル: AreaAura.cs プロジェクト: remixod/netServer
		///// <summary>
		///// The two filters for the two target types of a SpellEffect (assuming all area aura effects share the same target type)
		///// </summary>
		//private TargetFilter m_targetFilter, m_targetFilter2;

		/// <summary>
		/// Creates a new AreaAura that will auto-trigger the given Spell on everyone, according
		/// to the given SpellParameters.
		/// </summary>
		/// <param name="distributedSpell"></param>
		public AreaAura(WorldObject holder, Spell distributedSpell, ISpellParameters prms)
		{
			Init(holder, distributedSpell);
			m_params = prms;
			m_remainingCharges = m_params.MaxCharges;
			m_radius = prms.Radius;

			Start(null, true);
		}