//------------------------------------------------------------------------------ // // 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.RefreshableHpShieldComponent refreshableHpShield { get { return (CoreGame.Render.RefreshableHpShieldComponent)GetComponent(CombatComponentsLookup.RefreshableHpShield); } } public bool hasRefreshableHpShield { get { return HasComponent(CombatComponentsLookup.RefreshableHpShield); } } public void AddRefreshableHpShield(ElementType newElementType, long newShieldTotalVal, float newRefreshInterval) { var index = CombatComponentsLookup.RefreshableHpShield; var component = (CoreGame.Render.RefreshableHpShieldComponent)CreateComponent(index, typeof(CoreGame.Render.RefreshableHpShieldComponent)); component.elementType = newElementType; component.shieldTotalVal = newShieldTotalVal; component.refreshInterval = newRefreshInterval; AddComponent(index, component); } public void ReplaceRefreshableHpShield(ElementType newElementType, long newShieldTotalVal, float newRefreshInterval) { var index = CombatComponentsLookup.RefreshableHpShield; var component = (CoreGame.Render.RefreshableHpShieldComponent)CreateComponent(index, typeof(CoreGame.Render.RefreshableHpShieldComponent)); component.elementType = newElementType; component.shieldTotalVal = newShieldTotalVal; component.refreshInterval = newRefreshInterval; ReplaceComponent(index, component); } public void RemoveRefreshableHpShield() { RemoveComponent(CombatComponentsLookup.RefreshableHpShield); } } //------------------------------------------------------------------------------ // // 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 _matcherRefreshableHpShield; public static Entitas.IMatcher RefreshableHpShield { get { if (_matcherRefreshableHpShield == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.RefreshableHpShield); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherRefreshableHpShield = matcher; } return _matcherRefreshableHpShield; } } }