//------------------------------------------------------------------------------
//
// 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.StateBarProxy stateBarProxy { get { return (CoreGame.Render.StateBarProxy)GetComponent(CombatComponentsLookup.StateBarProxy); } }
public bool hasStateBarProxy { get { return HasComponent(CombatComponentsLookup.StateBarProxy); } }
public void AddStateBarProxy(CombatEntity newEnt) {
var index = CombatComponentsLookup.StateBarProxy;
var component = (CoreGame.Render.StateBarProxy)CreateComponent(index, typeof(CoreGame.Render.StateBarProxy));
component.ent = newEnt;
AddComponent(index, component);
}
public void ReplaceStateBarProxy(CombatEntity newEnt) {
var index = CombatComponentsLookup.StateBarProxy;
var component = (CoreGame.Render.StateBarProxy)CreateComponent(index, typeof(CoreGame.Render.StateBarProxy));
component.ent = newEnt;
ReplaceComponent(index, component);
}
public void RemoveStateBarProxy() {
RemoveComponent(CombatComponentsLookup.StateBarProxy);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherStateBarProxy;
public static Entitas.IMatcher StateBarProxy {
get {
if (_matcherStateBarProxy == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.StateBarProxy);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherStateBarProxy = matcher;
}
return _matcherStateBarProxy;
}
}
}