//------------------------------------------------------------------------------ // // 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.ConfuseMoveComponent confuseMove { get { return (CoreGame.Render.ConfuseMoveComponent)GetComponent(CombatComponentsLookup.ConfuseMove); } } public bool hasConfuseMove { get { return HasComponent(CombatComponentsLookup.ConfuseMove); } } public void AddConfuseMove(float newCd, float newCdAcc) { var index = CombatComponentsLookup.ConfuseMove; var component = (CoreGame.Render.ConfuseMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ConfuseMoveComponent)); component.cd = newCd; component.cdAcc = newCdAcc; AddComponent(index, component); } public void ReplaceConfuseMove(float newCd, float newCdAcc) { var index = CombatComponentsLookup.ConfuseMove; var component = (CoreGame.Render.ConfuseMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ConfuseMoveComponent)); component.cd = newCd; component.cdAcc = newCdAcc; ReplaceComponent(index, component); } public void RemoveConfuseMove() { RemoveComponent(CombatComponentsLookup.ConfuseMove); } } //------------------------------------------------------------------------------ // // 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 _matcherConfuseMove; public static Entitas.IMatcher ConfuseMove { get { if (_matcherConfuseMove == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.ConfuseMove); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherConfuseMove = matcher; } return _matcherConfuseMove; } } }