//------------------------------------------------------------------------------ // // 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.BornComponent born { get { return (CoreGame.Render.BornComponent)GetComponent(CombatComponentsLookup.Born); } } public bool hasBorn { get { return HasComponent(CombatComponentsLookup.Born); } } public void AddBorn(float newDelayCreateTime, string newBornEffectPath) { var index = CombatComponentsLookup.Born; var component = (CoreGame.Render.BornComponent)CreateComponent(index, typeof(CoreGame.Render.BornComponent)); component.delayCreateTime = newDelayCreateTime; component.bornEffectPath = newBornEffectPath; AddComponent(index, component); } public void ReplaceBorn(float newDelayCreateTime, string newBornEffectPath) { var index = CombatComponentsLookup.Born; var component = (CoreGame.Render.BornComponent)CreateComponent(index, typeof(CoreGame.Render.BornComponent)); component.delayCreateTime = newDelayCreateTime; component.bornEffectPath = newBornEffectPath; ReplaceComponent(index, component); } public void RemoveBorn() { RemoveComponent(CombatComponentsLookup.Born); } } //------------------------------------------------------------------------------ // // 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 _matcherBorn; public static Entitas.IMatcher Born { get { if (_matcherBorn == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.Born); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherBorn = matcher; } return _matcherBorn; } } }