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.6 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.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);
}
}
//------------------------------------------------------------------------------
// <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> _matcherInstantToBeAttracted;
public static Entitas.IMatcher<CombatEntity> InstantToBeAttracted {
get {
if (_matcherInstantToBeAttracted == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.InstantToBeAttracted);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherInstantToBeAttracted = matcher;
}
return _matcherInstantToBeAttracted;
}
}
}