Beispiel #1
0
        public override bool Activate(SpellCursor cursor)
        {
            SpellVar value = cursor.Load <SpellVar>(this.index);

            if (value != null)
            {
                cursor.Annotate(value);
            }
            return(true);
        }
Beispiel #2
0
        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);
        }