You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.9 KiB
60 lines
2.9 KiB
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 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.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
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);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// 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.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
public sealed partial class CombatMatcher {
|
|
|
|
static Entitas.IMatcher<CombatEntity> _matcherRefreshableHpShield;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> RefreshableHpShield {
|
|
get {
|
|
if (_matcherRefreshableHpShield == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.RefreshableHpShield);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherRefreshableHpShield = matcher;
|
|
}
|
|
|
|
return _matcherRefreshableHpShield;
|
|
}
|
|
}
|
|
}
|
|
|