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.
 
 
 
 
 
 

66 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.DoDropComponent doDrop { get { return (CoreGame.Render.DoDropComponent)GetComponent(CombatComponentsLookup.DoDrop); } }
public bool hasDoDrop { get { return HasComponent(CombatComponentsLookup.DoDrop); } }
public void AddDoDrop(float newDuration, UnityEngine.Vector2 newTargetPos, UnityEngine.Vector2 newStartPos, UnityEngine.Vector2 newBezierCtrl1, float newTargetScale, float newStartScale) {
var index = CombatComponentsLookup.DoDrop;
var component = (CoreGame.Render.DoDropComponent)CreateComponent(index, typeof(CoreGame.Render.DoDropComponent));
component.duration = newDuration;
component.targetPos = newTargetPos;
component.startPos = newStartPos;
component.bezierCtrl1 = newBezierCtrl1;
component.targetScale = newTargetScale;
component.startScale = newStartScale;
AddComponent(index, component);
}
public void ReplaceDoDrop(float newDuration, UnityEngine.Vector2 newTargetPos, UnityEngine.Vector2 newStartPos, UnityEngine.Vector2 newBezierCtrl1, float newTargetScale, float newStartScale) {
var index = CombatComponentsLookup.DoDrop;
var component = (CoreGame.Render.DoDropComponent)CreateComponent(index, typeof(CoreGame.Render.DoDropComponent));
component.duration = newDuration;
component.targetPos = newTargetPos;
component.startPos = newStartPos;
component.bezierCtrl1 = newBezierCtrl1;
component.targetScale = newTargetScale;
component.startScale = newStartScale;
ReplaceComponent(index, component);
}
public void RemoveDoDrop() {
RemoveComponent(CombatComponentsLookup.DoDrop);
}
}
//------------------------------------------------------------------------------
// <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> _matcherDoDrop;
public static Entitas.IMatcher<CombatEntity> DoDrop {
get {
if (_matcherDoDrop == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.DoDrop);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherDoDrop = matcher;
}
return _matcherDoDrop;
}
}
}