Пример #1
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        List <SpellCreationSegment> segs = new List <SpellCreationSegment> ();

        for (int i = 0; i < 8; i++)
        {
            SpellCreationSegment seg = new SpellCreationSegment();
            seg.SetSpeedMod(.5f);
            seg.SetStartingRotation(i * 45);
            seg.AddEvent(new Wait(7, seg));
            seg.AddEvent(new SpellEnd());
            segs.Add(seg);
        }
        return(segs);
    }
Пример #2
0
    public List <SpellCreationSegment> CreateSpellSegs(ISpellGrid grid, float damageMod)
    {
        SpellCreationSegment seg = new SpellCreationSegment();

        seg.SetStartingRotation(0);
        seg.SetTurnSpeed(50);
        seg.SetSpeedMod(.6f);
        seg.AddEvent(new Turn(20, seg));
        seg.AddEvent(new Turn(-30, seg));
        seg.AddEvent(new Turn(20, seg));
        seg.AddEvent(new Turn(-20, seg));
        //seg.AddEvent(new Wait(1, seg));
        seg.AddEvent(new SpellEnd());


        List <SpellCreationSegment> segs = new List <SpellCreationSegment>();

        segs.Add(seg);
        return(segs);
    }