当前位置: 首页>>代码示例>>C#>>正文


C# Spell.StartDelayedDamageContext方法代码示例

本文整理汇总了C#中Spell.StartDelayedDamageContext方法的典型用法代码示例。如果您正苦于以下问题:C# Spell.StartDelayedDamageContext方法的具体用法?C# Spell.StartDelayedDamageContext怎么用?C# Spell.StartDelayedDamageContext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Spell的用法示例。


在下文中一共展示了Spell.StartDelayedDamageContext方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InternalTimer

			public InternalTimer( Spell spell, Mobile attacker, Mobile defender, Mobile target )
				: base( TimeSpan.FromSeconds( Core.AOS ? 3.0 : 2.5 ) )
			{
				m_Spell = spell;
				m_Attacker = attacker;
				m_Defender = defender;
				m_Target = target;

				if ( m_Spell != null )
					m_Spell.StartDelayedDamageContext( attacker, this );

				Priority = TimerPriority.FiftyMS;
			}
开发者ID:greeduomacro,项目名称:unknown-shard-1,代码行数:13,代码来源:Explosion.cs

示例2: SpellDamageTimerAOS

            public SpellDamageTimerAOS( Spell s, Mobile target, Mobile from, int damage, int phys, int fire, int cold, int pois, int nrgy, TimeSpan delay, DFAlgorithm dfa )
                : base(delay)
            {
                m_Target = target;
                m_From = from;
                m_Damage = damage;
                m_Phys = phys;
                m_Fire = fire;
                m_Cold = cold;
                m_Pois = pois;
                m_Nrgy = nrgy;
                m_DFA = dfa;
                m_Spell = s;
                if( m_Spell != null && m_Spell.DelayedDamage && !m_Spell.DelayedDamageStacking )
                    m_Spell.StartDelayedDamageContext( target, this );

                Priority = TimerPriority.TwentyFiveMS;
            }
开发者ID:Leorgrium,项目名称:runuo,代码行数:18,代码来源:SpellHelper.cs

示例3: SpellDamageTimer

            public SpellDamageTimer( Spell s, Mobile target, Mobile from, int damage, TimeSpan delay )
                : base(delay)
            {
                m_Target = target;
                m_From = from;
                m_Damage = damage;
                m_Spell = s;

                if( m_Spell != null && m_Spell.DelayedDamage && !m_Spell.DelayedDamageStacking )
                    m_Spell.StartDelayedDamageContext( target, this );

                Priority = TimerPriority.TwentyFiveMS;
            }
开发者ID:Leorgrium,项目名称:runuo,代码行数:13,代码来源:SpellHelper.cs


注:本文中的Spell.StartDelayedDamageContext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。