//------------------------------------------------------------------------------ // // 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.AudioComponent audio { get { return (CoreGame.Render.AudioComponent)GetComponent(CombatComponentsLookup.Audio); } } public bool hasAudio { get { return HasComponent(CombatComponentsLookup.Audio); } } public void AddAudio(int newEid) { var index = CombatComponentsLookup.Audio; var component = (CoreGame.Render.AudioComponent)CreateComponent(index, typeof(CoreGame.Render.AudioComponent)); component.eid = newEid; AddComponent(index, component); } public void ReplaceAudio(int newEid) { var index = CombatComponentsLookup.Audio; var component = (CoreGame.Render.AudioComponent)CreateComponent(index, typeof(CoreGame.Render.AudioComponent)); component.eid = newEid; ReplaceComponent(index, component); } public void RemoveAudio() { RemoveComponent(CombatComponentsLookup.Audio); } } //------------------------------------------------------------------------------ // // 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 _matcherAudio; public static Entitas.IMatcher Audio { get { if (_matcherAudio == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.Audio); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherAudio = matcher; } return _matcherAudio; } } }