//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public partial class GameEntity {

    public ScrollBarValueComponent scrollBarValue { get { return (ScrollBarValueComponent)GetComponent(GameComponentsLookup.ScrollBarValue); } }
    public bool hasScrollBarValue { get { return HasComponent(GameComponentsLookup.ScrollBarValue); } }

    public void AddScrollBarValue(float newValue) {
        var index = GameComponentsLookup.ScrollBarValue;
        var component = (ScrollBarValueComponent)CreateComponent(index, typeof(ScrollBarValueComponent));
        component.value = newValue;
        AddComponent(index, component);
    }

    public void ReplaceScrollBarValue(float newValue) {
        var index = GameComponentsLookup.ScrollBarValue;
        var component = (ScrollBarValueComponent)CreateComponent(index, typeof(ScrollBarValueComponent));
        component.value = newValue;
        ReplaceComponent(index, component);
    }

    public void RemoveScrollBarValue() {
        RemoveComponent(GameComponentsLookup.ScrollBarValue);
    }
}

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherApiGenerator.
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
public sealed partial class GameMatcher {

    static Entitas.IMatcher<GameEntity> _matcherScrollBarValue;

    public static Entitas.IMatcher<GameEntity> ScrollBarValue {
        get {
            if (_matcherScrollBarValue == null) {
                var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.ScrollBarValue);
                matcher.componentNames = GameComponentsLookup.componentNames;
                _matcherScrollBarValue = matcher;
            }

            return _matcherScrollBarValue;
        }
    }
}
