Ejemplo n.º 1
0
        public void addMovementSequence(String groupName, MovementSequenceInfo info)
        {
            MovementSequenceGroup group = currentSequenceSet.getGroup(groupName);

            if (group == null)
            {
                group = new MovementSequenceGroup(groupName);
                currentSequenceSet.addGroup(group);
                if (GroupAdded != null)
                {
                    GroupAdded.Invoke(this, group);
                }
            }
            group.addSequence(info);
            if (SequenceAdded != null)
            {
                SequenceAdded.Invoke(this, group, info);
            }
        }
Ejemplo n.º 2
0
        public void removeMovementSequence(String groupName, MovementSequenceInfo info)
        {
            MovementSequenceGroup group = currentSequenceSet.getGroup(groupName);

            if (group != null)
            {
                if (info != null)
                {
                    if (SequenceRemoved != null)
                    {
                        SequenceRemoved.Invoke(this, group, info);
                    }
                    group.removeSequence(info);
                    if (group.Count == 0)
                    {
                        currentSequenceSet.removeGroup(group);
                        if (GroupRemoved != null)
                        {
                            GroupRemoved.Invoke(this, group);
                        }
                    }
                }
            }
        }
Ejemplo n.º 3
0
 public void removeGroup(MovementSequenceGroup group)
 {
     groups.Remove(group);
 }
Ejemplo n.º 4
0
 public void addGroup(MovementSequenceGroup group)
 {
     groups.AddLast(group);
 }