//------------------------------------------------------------------------------
//
// 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.ParentRecorderComponent parentRecorder { get { return (CoreGame.Render.ParentRecorderComponent)GetComponent(CombatComponentsLookup.ParentRecorder); } }
public bool hasParentRecorder { get { return HasComponent(CombatComponentsLookup.ParentRecorder); } }
public void AddParentRecorder(CoreGame.Render.CompLinkerType newType, int newParentEid) {
var index = CombatComponentsLookup.ParentRecorder;
var component = (CoreGame.Render.ParentRecorderComponent)CreateComponent(index, typeof(CoreGame.Render.ParentRecorderComponent));
component.type = newType;
component.parentEid = newParentEid;
AddComponent(index, component);
}
public void ReplaceParentRecorder(CoreGame.Render.CompLinkerType newType, int newParentEid) {
var index = CombatComponentsLookup.ParentRecorder;
var component = (CoreGame.Render.ParentRecorderComponent)CreateComponent(index, typeof(CoreGame.Render.ParentRecorderComponent));
component.type = newType;
component.parentEid = newParentEid;
ReplaceComponent(index, component);
}
public void RemoveParentRecorder() {
RemoveComponent(CombatComponentsLookup.ParentRecorder);
}
}
//------------------------------------------------------------------------------
//
// 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 _matcherParentRecorder;
public static Entitas.IMatcher ParentRecorder {
get {
if (_matcherParentRecorder == null) {
var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.ParentRecorder);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherParentRecorder = matcher;
}
return _matcherParentRecorder;
}
}
}