//------------------------------------------------------------------------------
//
// 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.EquipsComponent equips { get { return (CoreGame.Render.EquipsComponent)GetComponent(CombatComponentsLookup.Equips); } }
public bool hasEquips { get { return HasComponent(CombatComponentsLookup.Equips); } }
public void AddEquips(CombatEntity newOwner) {
var index = CombatComponentsLookup.Equips;
var component = (CoreGame.Render.EquipsComponent)CreateComponent(index, typeof(CoreGame.Render.EquipsComponent));
component.owner = newOwner;
AddComponent(index, component);
}
public void ReplaceEquips(CombatEntity newOwner) {
var index = CombatComponentsLookup.Equips;
var component = (CoreGame.Render.EquipsComponent)CreateComponent(index, typeof(CoreGame.Render.EquipsComponent));
component.owner = newOwner;
ReplaceComponent(index, component);
}
public void RemoveEquips() {
RemoveComponent(CombatComponentsLookup.Equips);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherEquips;
public static Entitas.IMatcher Equips {
get {
if (_matcherEquips == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.Equips);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherEquips = matcher;
}
return _matcherEquips;
}
}
}