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.
 
 
 
 
 
 

56 lines
2.4 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.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);
}
}
//------------------------------------------------------------------------------
// <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> _matcherNavState;
public static Entitas.IMatcher<CombatEntity> NavState {
get {
if (_matcherNavState == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.NavState);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherNavState = matcher;
}
return _matcherNavState;
}
}
}