//------------------------------------------------------------------------------
// 
//     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.
// 
//------------------------------------------------------------------------------
public partial class GameEntity {
    public PauseComponent pause { get { return (PauseComponent)GetComponent(GameComponentsLookup.Pause); } }
    public bool hasPause { get { return HasComponent(GameComponentsLookup.Pause); } }
    public void AddPause(bool newIsPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache) {
        var index = GameComponentsLookup.Pause;
        var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent));
        component.IsPause = newIsPause;
        component.PausePreFrame = newPausePreFrame;
        component.PauseTime = newPauseTime;
        component.VelocityCache = newVelocityCache;
        component.AnimeSpeedCache = newAnimeSpeedCache;
        AddComponent(index, component);
    }
    public void ReplacePause(bool newIsPause, int newPausePreFrame, float newPauseTime, UnityEngine.Vector3 newVelocityCache, float newAnimeSpeedCache) {
        var index = GameComponentsLookup.Pause;
        var component = (PauseComponent)CreateComponent(index, typeof(PauseComponent));
        component.IsPause = newIsPause;
        component.PausePreFrame = newPausePreFrame;
        component.PauseTime = newPauseTime;
        component.VelocityCache = newVelocityCache;
        component.AnimeSpeedCache = newAnimeSpeedCache;
        ReplaceComponent(index, component);
    }
    public void RemovePause() {
        RemoveComponent(GameComponentsLookup.Pause);
    }
}
//------------------------------------------------------------------------------
// 
//     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.
// 
//------------------------------------------------------------------------------
public sealed partial class GameMatcher {
    static Entitas.IMatcher _matcherPause;
    public static Entitas.IMatcher Pause {
        get {
            if (_matcherPause == null) {
                var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Pause);
                matcher.componentNames = GameComponentsLookup.componentNames;
                _matcherPause = matcher;
            }
            return _matcherPause;
        }
    }
}