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