コード例 #1
0
ファイル: EngineHelper.cs プロジェクト: unforbidable/patcher
 public IEffect CreateEffect(IMgef baseEffect, float magnitude, int area, int duration)
 {
     return (IEffect)context.Rule.Engine.ProxyProvider.CreateFieldProxy(new Effect()
     {
         BaseEffect = baseEffect.ToFormId(),
         Magnitude = magnitude,
         Area = (uint)area,
         Duration = (uint)duration
     }, ProxyMode.Target);
 }
コード例 #2
0
ファイル: EngineHelper.cs プロジェクト: tstavrianos/patcher
 public IEffect CreateEffect(IMgef baseEffect, float magnitude, int area, int duration)
 {
     return((IEffect)context.Rule.Engine.ProxyProvider.CreateFieldProxy(new Effect()
     {
         BaseEffect = baseEffect.ToFormId(),
         Magnitude = magnitude,
         Area = (uint)area,
         Duration = (uint)duration
     }, ProxyMode.Target));
 }