You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
3.0 KiB
64 lines
3.0 KiB
//------------------------------------------------------------------------------
|
|
// <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 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);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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 CombatMatcher {
|
|
|
|
static Entitas.IMatcher<CombatEntity> _matcherCurveBullet;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> CurveBullet {
|
|
get {
|
|
if (_matcherCurveBullet == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.CurveBullet);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherCurveBullet = matcher;
|
|
}
|
|
|
|
return _matcherCurveBullet;
|
|
}
|
|
}
|
|
}
|
|
|