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.4 KiB
58 lines
2.4 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.ScareMoveComponent scareMove { get { return (CoreGame.Render.ScareMoveComponent)GetComponent(CombatComponentsLookup.ScareMove); } }
|
|
public bool hasScareMove { get { return HasComponent(CombatComponentsLookup.ScareMove); } }
|
|
|
|
public void AddScareMove(float newCd, float newCdAcc) {
|
|
var index = CombatComponentsLookup.ScareMove;
|
|
var component = (CoreGame.Render.ScareMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ScareMoveComponent));
|
|
component.cd = newCd;
|
|
component.cdAcc = newCdAcc;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplaceScareMove(float newCd, float newCdAcc) {
|
|
var index = CombatComponentsLookup.ScareMove;
|
|
var component = (CoreGame.Render.ScareMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ScareMoveComponent));
|
|
component.cd = newCd;
|
|
component.cdAcc = newCdAcc;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemoveScareMove() {
|
|
RemoveComponent(CombatComponentsLookup.ScareMove);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherScareMove;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> ScareMove {
|
|
get {
|
|
if (_matcherScareMove == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.ScareMove);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherScareMove = matcher;
|
|
}
|
|
|
|
return _matcherScareMove;
|
|
}
|
|
}
|
|
}
|
|
|