//------------------------------------------------------------------------------
//
// 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.NavStateComponent navState { get { return (CoreGame.Render.NavStateComponent)GetComponent(CombatComponentsLookup.NavState); } }
public bool hasNavState { get { return HasComponent(CombatComponentsLookup.NavState); } }
public void AddNavState(CoreGame.Render.NavState newState) {
var index = CombatComponentsLookup.NavState;
var component = (CoreGame.Render.NavStateComponent)CreateComponent(index, typeof(CoreGame.Render.NavStateComponent));
component.state = newState;
AddComponent(index, component);
}
public void ReplaceNavState(CoreGame.Render.NavState newState) {
var index = CombatComponentsLookup.NavState;
var component = (CoreGame.Render.NavStateComponent)CreateComponent(index, typeof(CoreGame.Render.NavStateComponent));
component.state = newState;
ReplaceComponent(index, component);
}
public void RemoveNavState() {
RemoveComponent(CombatComponentsLookup.NavState);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherNavState;
public static Entitas.IMatcher NavState {
get {
if (_matcherNavState == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.NavState);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherNavState = matcher;
}
return _matcherNavState;
}
}
}