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); }
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)); }