//------------------------------------------------------------------------------
// 
//     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 MasterSoulComponent masterSoul { get { return (MasterSoulComponent)GetComponent(GameComponentsLookup.MasterSoul); } }
    public bool hasMasterSoul { get { return HasComponent(GameComponentsLookup.MasterSoul); } }
    public void AddMasterSoul(float newShakeTimeLeft) {
        var index = GameComponentsLookup.MasterSoul;
        var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent));
        component.ShakeTimeLeft = newShakeTimeLeft;
        AddComponent(index, component);
    }
    public void ReplaceMasterSoul(float newShakeTimeLeft) {
        var index = GameComponentsLookup.MasterSoul;
        var component = (MasterSoulComponent)CreateComponent(index, typeof(MasterSoulComponent));
        component.ShakeTimeLeft = newShakeTimeLeft;
        ReplaceComponent(index, component);
    }
    public void RemoveMasterSoul() {
        RemoveComponent(GameComponentsLookup.MasterSoul);
    }
}
//------------------------------------------------------------------------------
// 
//     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 _matcherMasterSoul;
    public static Entitas.IMatcher MasterSoul {
        get {
            if (_matcherMasterSoul == null) {
                var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.MasterSoul);
                matcher.componentNames = GameComponentsLookup.componentNames;
                _matcherMasterSoul = matcher;
            }
            return _matcherMasterSoul;
        }
    }
}