Ejemplo n.º 1
0
 public Appearance_in_list(
     IFigure_appearance in_appearance,
     int in_index
     )
 {
     appearance = in_appearance;
     index      = in_index;
 }
Ejemplo n.º 2
0
 public Action(
     Action_type in_type,
     IFigure_appearance in_appearance,
     IAction_group in_group
     )
 {
     type = in_type;
     figure_appearance = in_appearance;
     action_group      = in_group;
 }
 private void remember_finished_subfigure(
     IFigure_appearance finished_appearance
     )
 {
     appearance_to_subfigure.TryGetValue(
         finished_appearance, out var started_subfigure
         );
     if (started_subfigure != null)
     {
         ended_subfigures.Add(started_subfigure);
     }
 }
Ejemplo n.º 4
0
 public void add_appearance(IFigure_appearance appearance)
 {
     if (animator != null)
     {
         animator.SetTrigger("fire");
     }
     _appearances.Add(appearance);
     if (appearance is Figure_appearance unity_appearance)
     {
         unity_appearance.transform.parent        = this.transform;
         unity_appearance.transform.localPosition = Vector3.zero;
     }
 }
        private void add_next_subfigure(
            IFigure_appearance appended_figure
            )
        {
            ISubfigure new_subfigure = representation.create_subfigure(appended_figure.figure);

            new_subfigure.id = (last_subfigure_id++).ToString();
            appearance_to_subfigure.Add(appended_figure, new_subfigure);
            if (ended_subfigures.Any())
            {
                foreach (ISubfigure ended_subfigure in ended_subfigures)
                {
                    ended_subfigure.connext_to_next(new_subfigure);
                }
            }
            else
            {
                representation.add_first_subfigures(new_subfigure);
            }
        }
Ejemplo n.º 6
0
 public void add_appearance(IFigure_appearance appearance)
 {
     _appearances.Add(appearance);
 }