//------------------------------------------------------------------------------
//
// 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 {
static readonly CoreGame.Render.ForceNavComponent forceNavComponent = new CoreGame.Render.ForceNavComponent();
public bool isForceNav {
get { return HasComponent(CombatComponentsLookup.ForceNav); }
set {
if (value != isForceNav) {
var index = CombatComponentsLookup.ForceNav;
if (value) {
var componentPool = GetComponentPool(index);
var component = componentPool.Count > 0
? componentPool.Pop()
: forceNavComponent;
AddComponent(index, component);
} else {
RemoveComponent(index);
}
}
}
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherForceNav;
public static Entitas.IMatcher ForceNav {
get {
if (_matcherForceNav == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.ForceNav);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherForceNav = matcher;
}
return _matcherForceNav;
}
}
}