public override bool Activate(SpellCursor cursor) { SpellVar value = cursor.Load <SpellVar>(this.index); if (value != null) { cursor.Annotate(value); } return(true); }
public override bool Activate(SpellCursor cursor) { int targetIndex = 0; foreach (SpellGlyph param in cursor.Parameters) { if (param is MarkerGlyph) { targetIndex = (param as MarkerGlyph).Index; break; } } cursor.Annotate(cursor.Load <SpellVar>(targetIndex)); return(true); }