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.
58 lines
2.7 KiB
58 lines
2.7 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.WaitToBeAttractedComponent waitToBeAttracted { get { return (CoreGame.Render.WaitToBeAttractedComponent)GetComponent(CombatComponentsLookup.WaitToBeAttracted); } }
|
|
public bool hasWaitToBeAttracted { get { return HasComponent(CombatComponentsLookup.WaitToBeAttracted); } }
|
|
|
|
public void AddWaitToBeAttracted(float newPickUpRange, float newPickUpTime) {
|
|
var index = CombatComponentsLookup.WaitToBeAttracted;
|
|
var component = (CoreGame.Render.WaitToBeAttractedComponent)CreateComponent(index, typeof(CoreGame.Render.WaitToBeAttractedComponent));
|
|
component.pickUpRange = newPickUpRange;
|
|
component.pickUpTime = newPickUpTime;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplaceWaitToBeAttracted(float newPickUpRange, float newPickUpTime) {
|
|
var index = CombatComponentsLookup.WaitToBeAttracted;
|
|
var component = (CoreGame.Render.WaitToBeAttractedComponent)CreateComponent(index, typeof(CoreGame.Render.WaitToBeAttractedComponent));
|
|
component.pickUpRange = newPickUpRange;
|
|
component.pickUpTime = newPickUpTime;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemoveWaitToBeAttracted() {
|
|
RemoveComponent(CombatComponentsLookup.WaitToBeAttracted);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherWaitToBeAttracted;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> WaitToBeAttracted {
|
|
get {
|
|
if (_matcherWaitToBeAttracted == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.WaitToBeAttracted);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherWaitToBeAttracted = matcher;
|
|
}
|
|
|
|
return _matcherWaitToBeAttracted;
|
|
}
|
|
}
|
|
}
|
|
|