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.
66 lines
3.0 KiB
66 lines
3.0 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.BlackboardComponent blackboard { get { return (CoreGame.Render.BlackboardComponent)GetComponent(CombatComponentsLookup.Blackboard); } }
|
|
public bool hasBlackboard { get { return HasComponent(CombatComponentsLookup.Blackboard); } }
|
|
|
|
public void AddBlackboard(CoreGame.Render.CfgType newCfgType, int newUnitCfgId, int[] newShowCfgIds, int[] newAffixIds, int newEid, bool newInverseDir) {
|
|
var index = CombatComponentsLookup.Blackboard;
|
|
var component = (CoreGame.Render.BlackboardComponent)CreateComponent(index, typeof(CoreGame.Render.BlackboardComponent));
|
|
component.cfgType = newCfgType;
|
|
component.unitCfgId = newUnitCfgId;
|
|
component.showCfgIds = newShowCfgIds;
|
|
component.affixIds = newAffixIds;
|
|
component.eid = newEid;
|
|
component.inverseDir = newInverseDir;
|
|
AddComponent(index, component);
|
|
}
|
|
|
|
public void ReplaceBlackboard(CoreGame.Render.CfgType newCfgType, int newUnitCfgId, int[] newShowCfgIds, int[] newAffixIds, int newEid, bool newInverseDir) {
|
|
var index = CombatComponentsLookup.Blackboard;
|
|
var component = (CoreGame.Render.BlackboardComponent)CreateComponent(index, typeof(CoreGame.Render.BlackboardComponent));
|
|
component.cfgType = newCfgType;
|
|
component.unitCfgId = newUnitCfgId;
|
|
component.showCfgIds = newShowCfgIds;
|
|
component.affixIds = newAffixIds;
|
|
component.eid = newEid;
|
|
component.inverseDir = newInverseDir;
|
|
ReplaceComponent(index, component);
|
|
}
|
|
|
|
public void RemoveBlackboard() {
|
|
RemoveComponent(CombatComponentsLookup.Blackboard);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherBlackboard;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> Blackboard {
|
|
get {
|
|
if (_matcherBlackboard == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.Blackboard);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherBlackboard = matcher;
|
|
}
|
|
|
|
return _matcherBlackboard;
|
|
}
|
|
}
|
|
}
|
|
|