//------------------------------------------------------------------------------
// 
//     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 PointComponent point { get { return (PointComponent)GetComponent(GameComponentsLookup.Point); } }
    public bool hasPoint { get { return HasComponent(GameComponentsLookup.Point); } }
    public void AddPoint(EPointState newState, EPointType newPointType, UnityEngine.Vector3 newCastSpeed, float newTimeLeft) {
        var index = GameComponentsLookup.Point;
        var component = (PointComponent)CreateComponent(index, typeof(PointComponent));
        component.State = newState;
        component.PointType = newPointType;
        component.CastSpeed = newCastSpeed;
        component.TimeLeft = newTimeLeft;
        AddComponent(index, component);
    }
    public void ReplacePoint(EPointState newState, EPointType newPointType, UnityEngine.Vector3 newCastSpeed, float newTimeLeft) {
        var index = GameComponentsLookup.Point;
        var component = (PointComponent)CreateComponent(index, typeof(PointComponent));
        component.State = newState;
        component.PointType = newPointType;
        component.CastSpeed = newCastSpeed;
        component.TimeLeft = newTimeLeft;
        ReplaceComponent(index, component);
    }
    public void RemovePoint() {
        RemoveComponent(GameComponentsLookup.Point);
    }
}
//------------------------------------------------------------------------------
// 
//     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 _matcherPoint;
    public static Entitas.IMatcher Point {
        get {
            if (_matcherPoint == null) {
                var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(GameComponentsLookup.Point);
                matcher.componentNames = GameComponentsLookup.componentNames;
                _matcherPoint = matcher;
            }
            return _matcherPoint;
        }
    }
}