//------------------------------------------------------------------------------
//
// 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.InstantToBeAttractedComponent instantToBeAttracted { get { return (CoreGame.Render.InstantToBeAttractedComponent)GetComponent(CombatComponentsLookup.InstantToBeAttracted); } }
public bool hasInstantToBeAttracted { get { return HasComponent(CombatComponentsLookup.InstantToBeAttracted); } }
public void AddInstantToBeAttracted(float newPickUpRange) {
var index = CombatComponentsLookup.InstantToBeAttracted;
var component = (CoreGame.Render.InstantToBeAttractedComponent)CreateComponent(index, typeof(CoreGame.Render.InstantToBeAttractedComponent));
component.pickUpRange = newPickUpRange;
AddComponent(index, component);
}
public void ReplaceInstantToBeAttracted(float newPickUpRange) {
var index = CombatComponentsLookup.InstantToBeAttracted;
var component = (CoreGame.Render.InstantToBeAttractedComponent)CreateComponent(index, typeof(CoreGame.Render.InstantToBeAttractedComponent));
component.pickUpRange = newPickUpRange;
ReplaceComponent(index, component);
}
public void RemoveInstantToBeAttracted() {
RemoveComponent(CombatComponentsLookup.InstantToBeAttracted);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherInstantToBeAttracted;
public static Entitas.IMatcher InstantToBeAttracted {
get {
if (_matcherInstantToBeAttracted == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.InstantToBeAttracted);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherInstantToBeAttracted = matcher;
}
return _matcherInstantToBeAttracted;
}
}
}