//------------------------------------------------------------------------------ // // 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.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); } } //------------------------------------------------------------------------------ // // 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 _matcherDoDrop; public static Entitas.IMatcher DoDrop { get { if (_matcherDoDrop == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.DoDrop); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherDoDrop = matcher; } return _matcherDoDrop; } } }