//------------------------------------------------------------------------------
//
// 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 CombatEntity {
public CoreGame.Render.CurveBulletComponent curveBullet { get { return (CoreGame.Render.CurveBulletComponent)GetComponent(CombatComponentsLookup.CurveBullet); } }
public bool hasCurveBullet { get { return HasComponent(CombatComponentsLookup.CurveBullet); } }
public void AddCurveBullet(UnityEngine.Vector2 newOrigin, UnityEngine.Vector2 newDestination, UnityEngine.Vector2 newControl, int newExplosionRangeEid, float newTotalTime) {
var index = CombatComponentsLookup.CurveBullet;
var component = (CoreGame.Render.CurveBulletComponent)CreateComponent(index, typeof(CoreGame.Render.CurveBulletComponent));
component.origin = newOrigin;
component.destination = newDestination;
component.control = newControl;
component.explosionRangeEid = newExplosionRangeEid;
component.totalTime = newTotalTime;
AddComponent(index, component);
}
public void ReplaceCurveBullet(UnityEngine.Vector2 newOrigin, UnityEngine.Vector2 newDestination, UnityEngine.Vector2 newControl, int newExplosionRangeEid, float newTotalTime) {
var index = CombatComponentsLookup.CurveBullet;
var component = (CoreGame.Render.CurveBulletComponent)CreateComponent(index, typeof(CoreGame.Render.CurveBulletComponent));
component.origin = newOrigin;
component.destination = newDestination;
component.control = newControl;
component.explosionRangeEid = newExplosionRangeEid;
component.totalTime = newTotalTime;
ReplaceComponent(index, component);
}
public void RemoveCurveBullet() {
RemoveComponent(CombatComponentsLookup.CurveBullet);
}
}
//------------------------------------------------------------------------------
//
// 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 CombatMatcher {
static Entitas.IMatcher _matcherCurveBullet;
public static Entitas.IMatcher CurveBullet {
get {
if (_matcherCurveBullet == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.CurveBullet);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherCurveBullet = matcher;
}
return _matcherCurveBullet;
}
}
}