// SelectAnimationByName sets the current animation. The name must be
// registered.
186954
func (ac *AnimationComponent) SelectAnimationByName(name string) {
	ac.CurrentAnimation = ac.Animations[name]
	ac.index = 0
}
1266005
func NewAnimationComponent(drawables []Drawable, rate float32) AnimationComponent {
	return AnimationComponent{
		Animations: make(map[string]*Animation),
		Drawables:  drawables,
		Rate:       rate,
	}
}
638647
func (args *Arguments) GetArtifactByName(name string) *Artifact {
	for _, art := range args.Artifacts {
		if art.Name == name {
			return &art
		}
	}
	return nil
}
602133
func AnimationStart(listener func(*vecty.Event)) *vecty.EventListener {
	return &vecty.EventListener{Name: "animationstart", Listener: listener}
}
167692
func (api *NoteAPI) SortByName(reverse bool) *NoteAPI {
	api.sortByName(reverse)
	return api
}
262073
func (s *HostService) GetHostByName(name string, opts ...OptionFunc) (*Host, int, error) {
	id, count, err := s.GetHostID(name, opts...)
	if err != nil {
		return nil, count, err
	}

	r, count, err := s.GetHostByID(id, opts...)
	if err != nil {
		return nil, count, err
	}
	return r, count, nil
}
1300372
func (a *AnimationSystem) AddByInterface(i ecs.Identifier) {
	o, _ := i.(Animationable)
	a.Add(o.GetBasicEntity(), o.GetAnimationComponent(), o.GetRenderComponent())
}
1248366
func (s *DatasetActionSummary) SetActionName(v string) *DatasetActionSummary {
	s.ActionName = &v
	return s
}
641354
func (api *IconAPI) SortByName(reverse bool) *IconAPI {
	api.sortByName(reverse)
	return api
}
543160
func (s *ActionState) SetActionName(v string) *ActionState {
	s.ActionName = &v
	return s
}
628678
func (s *DomainService) GetDomainChildrenByName(name string, opts ...OptionFunc) (*DomainChildren, int, error) {
	id, count, err := s.GetDomainChildrenID(name, opts...)
	if err != nil {
		return nil, count, err
	}

	r, count, err := s.GetDomainChildrenByID(id, opts...)
	if err != nil {
		return nil, count, err
	}
	return r, count, nil
}
72505
func AnimationIteration(listener func(*vecty.Event)) *vecty.EventListener {
	return &vecty.EventListener{Name: "animationiteration", Listener: listener}
}
95791
func (f *Form) SelectByOptionLabel(name string, optionLabel ...string) error {
	s, ok := f.selects[name]
	if !ok {
		return errors.NewElementNotFound("No select element found with name '%s'.", name)
	}
	if len(optionLabel) > 1 && !s.multiple {
		return errors.NewElementNotFound("The select element with name '%s' is not a select miltiple.", name)
	}
	f.fields.Del(name)
	for _, l := range optionLabel {
		if _, ok := s.labels[l]; !ok {
			return errors.NewElementNotFound("The select element with name %q does not have an option with label %q", name, l)
		}
		f.fields.Add(name, s.labels.Get(l))
	}
	return nil
}
101430
func (c *Animation) ResolveAnimation(animationId string) (*RuntimeRemoteObject, error) {
	var v AnimationResolveAnimationParams
	v.AnimationId = animationId
	return c.ResolveAnimationWithParams(&v)
}
443377
func (c *Client) IntervalActionByName(name string) (action contract.IntervalAction, err error) {
	conn := c.Pool.Get()
	defer conn.Close()

	err = getObjectByKey(conn, models.IntervalActionNameKey, name, &action)
	return action, err
}
1065877
func Name(n string) Option {
	return func(p *Plugin) error {
		p.Name = n
		return nil
	}
}
1348053
func (s *PutApprovalResultInput) SetActionName(v string) *PutApprovalResultInput {
	s.ActionName = &v
	return s
}