//------------------------------------------------------------------------------
//
// 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.
//
//------------------------------------------------------------------------------
public partial class CombatEntity {
public CoreGame.Render.EffectShowProxy effectShowProxy { get { return (CoreGame.Render.EffectShowProxy)GetComponent(CombatComponentsLookup.EffectShowProxy); } }
public bool hasEffectShowProxy { get { return HasComponent(CombatComponentsLookup.EffectShowProxy); } }
public void AddEffectShowProxy(float newEffectScale, CombatEntity newEnt) {
var index = CombatComponentsLookup.EffectShowProxy;
var component = (CoreGame.Render.EffectShowProxy)CreateComponent(index, typeof(CoreGame.Render.EffectShowProxy));
component.effectScale = newEffectScale;
component.ent = newEnt;
AddComponent(index, component);
}
public void ReplaceEffectShowProxy(float newEffectScale, CombatEntity newEnt) {
var index = CombatComponentsLookup.EffectShowProxy;
var component = (CoreGame.Render.EffectShowProxy)CreateComponent(index, typeof(CoreGame.Render.EffectShowProxy));
component.effectScale = newEffectScale;
component.ent = newEnt;
ReplaceComponent(index, component);
}
public void RemoveEffectShowProxy() {
RemoveComponent(CombatComponentsLookup.EffectShowProxy);
}
}
//------------------------------------------------------------------------------
//
// 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.
//
//------------------------------------------------------------------------------
public sealed partial class CombatMatcher {
static Entitas.IMatcher _matcherEffectShowProxy;
public static Entitas.IMatcher EffectShowProxy {
get {
if (_matcherEffectShowProxy == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.EffectShowProxy);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherEffectShowProxy = matcher;
}
return _matcherEffectShowProxy;
}
}
}