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.6 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.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);
}
}
//------------------------------------------------------------------------------
// <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> _matcherParentRecorder;
public static Entitas.IMatcher<CombatEntity> ParentRecorder {
get {
if (_matcherParentRecorder == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.ParentRecorder);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherParentRecorder = matcher;
}
return _matcherParentRecorder;
}
}
}