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.5 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.ConfuseMoveComponent confuseMove { get { return (CoreGame.Render.ConfuseMoveComponent)GetComponent(CombatComponentsLookup.ConfuseMove); } }
public bool hasConfuseMove { get { return HasComponent(CombatComponentsLookup.ConfuseMove); } }
public void AddConfuseMove(float newCd, float newCdAcc) {
var index = CombatComponentsLookup.ConfuseMove;
var component = (CoreGame.Render.ConfuseMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ConfuseMoveComponent));
component.cd = newCd;
component.cdAcc = newCdAcc;
AddComponent(index, component);
}
public void ReplaceConfuseMove(float newCd, float newCdAcc) {
var index = CombatComponentsLookup.ConfuseMove;
var component = (CoreGame.Render.ConfuseMoveComponent)CreateComponent(index, typeof(CoreGame.Render.ConfuseMoveComponent));
component.cd = newCd;
component.cdAcc = newCdAcc;
ReplaceComponent(index, component);
}
public void RemoveConfuseMove() {
RemoveComponent(CombatComponentsLookup.ConfuseMove);
}
}
//------------------------------------------------------------------------------
// <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> _matcherConfuseMove;
public static Entitas.IMatcher<CombatEntity> ConfuseMove {
get {
if (_matcherConfuseMove == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.ConfuseMove);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherConfuseMove = matcher;
}
return _matcherConfuseMove;
}
}
}