//------------------------------------------------------------------------------ // // 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.ScareMoveComponent scareMove { get { return (CoreGame.Render.ScareMoveComponent)GetComponent(CombatComponentsLookup.ScareMove); } } public bool hasScareMove { get { return HasComponent(CombatComponentsLookup.ScareMove); } } public void AddScareMove(float newCd, float newCdAcc) { var index = CombatComponentsLookup.ScareMove; var component = (CoreGame.Render.ScareMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ScareMoveComponent)); component.cd = newCd; component.cdAcc = newCdAcc; AddComponent(index, component); } public void ReplaceScareMove(float newCd, float newCdAcc) { var index = CombatComponentsLookup.ScareMove; var component = (CoreGame.Render.ScareMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ScareMoveComponent)); component.cd = newCd; component.cdAcc = newCdAcc; ReplaceComponent(index, component); } public void RemoveScareMove() { RemoveComponent(CombatComponentsLookup.ScareMove); } } //------------------------------------------------------------------------------ // // 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 _matcherScareMove; public static Entitas.IMatcher ScareMove { get { if (_matcherScareMove == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.ScareMove); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherScareMove = matcher; } return _matcherScareMove; } } }