//------------------------------------------------------------------------------ // // 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.ReloadComponent reload { get { return (CoreGame.Render.ReloadComponent)GetComponent(CombatComponentsLookup.Reload); } } public bool hasReload { get { return HasComponent(CombatComponentsLookup.Reload); } } public void AddReload(float newCdTotal) { var index = CombatComponentsLookup.Reload; var component = (CoreGame.Render.ReloadComponent)CreateComponent(index, typeof(CoreGame.Render.ReloadComponent)); component.cdTotal = newCdTotal; AddComponent(index, component); } public void ReplaceReload(float newCdTotal) { var index = CombatComponentsLookup.Reload; var component = (CoreGame.Render.ReloadComponent)CreateComponent(index, typeof(CoreGame.Render.ReloadComponent)); component.cdTotal = newCdTotal; ReplaceComponent(index, component); } public void RemoveReload() { RemoveComponent(CombatComponentsLookup.Reload); } } //------------------------------------------------------------------------------ // // 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 _matcherReload; public static Entitas.IMatcher Reload { get { if (_matcherReload == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.Reload); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherReload = matcher; } return _matcherReload; } } }