public ScriptUnitStateEvent(IScriptUnit unit, ScriptUnitState state, Exception error = null)
 {
     this.unit  = unit;
     this.state = state;
     this.error = error;
 }
Example #2
0
 /// <summary>
 /// Constructor for scripted GameEffect
 /// </summary>
 /// <param id="effect">The effect database entry</param>
 /// <param id="caster">The caster of the spell</param>
 /// <param id="target">Target game entity for the effect</param>
 public GameEffect(EffectDb effect, IScriptUnit caster, IScriptGameEntity target)
 {
   this.targetEntity = target;
   this.Entry = effect;
   this.caster = caster;
   LocalData = new List<object>();
   Active = true;
   Time = 0;
   Graphical = false;
   GraphicalOverlay = false;
 }
 public ScriptUnitProgressEvent(IScriptUnit unit, int lineNumber)
 {
     this.unit       = unit;
     this.lineNumber = lineNumber;
 }