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
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.BornComponent born { get { return (CoreGame.Render.BornComponent)GetComponent(CombatComponentsLookup.Born); } }
|
|
public bool hasBorn { get { return HasComponent(CombatComponentsLookup.Born); } }
|
|
|
|
public void AddBorn(float newDelayCreateTime, string newBornEffectPath) {
|
|
var index = CombatComponentsLookup.Born;
|
|
var component = (CoreGame.Render.BornComponent)CreateComponent(index, typeof(CoreGame.Render.BornComponent));
|
|
component.delayCreateTime = newDelayCreateTime;
|
|
component.bornEffectPath = newBornEffectPath;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplaceBorn(float newDelayCreateTime, string newBornEffectPath) {
|
|
var index = CombatComponentsLookup.Born;
|
|
var component = (CoreGame.Render.BornComponent)CreateComponent(index, typeof(CoreGame.Render.BornComponent));
|
|
component.delayCreateTime = newDelayCreateTime;
|
|
component.bornEffectPath = newBornEffectPath;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemoveBorn() {
|
|
RemoveComponent(CombatComponentsLookup.Born);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherBorn;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> Born {
|
|
get {
|
|
if (_matcherBorn == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.Born);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherBorn = matcher;
|
|
}
|
|
|
|
return _matcherBorn;
|
|
}
|
|
}
|
|
}
|
|
|