//------------------------------------------------------------------------------ // // 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.ZoneComponent zone { get { return (CoreGame.Render.ZoneComponent)GetComponent(CombatComponentsLookup.Zone); } } public bool hasZone { get { return HasComponent(CombatComponentsLookup.Zone); } } public void AddZone(int newCasterEid, int newTargetEid, int newZoneId, bool newIsFollow, Sog.Fixed64Vector2 newOffsetPos, ZoneLoopType newLoopType, Sog.Fixed64 newDuration, int newLoopCnt, Sog.Fixed64 newInterval, int newAttachAbilityId, int newEndAbilityId, Sog.Fixed64 newAccumulatedTime, bool newEntInvalidDestroy) { var index = CombatComponentsLookup.Zone; var component = (CoreGame.Render.ZoneComponent)CreateComponent(index, typeof(CoreGame.Render.ZoneComponent)); component.casterEid = newCasterEid; component.targetEid = newTargetEid; component.zoneId = newZoneId; component.isFollow = newIsFollow; component.offsetPos = newOffsetPos; component.loopType = newLoopType; component.duration = newDuration; component.loopCnt = newLoopCnt; component.interval = newInterval; component.attachAbilityId = newAttachAbilityId; component.endAbilityId = newEndAbilityId; component.accumulatedTime = newAccumulatedTime; component.entInvalidDestroy = newEntInvalidDestroy; AddComponent(index, component); } public void ReplaceZone(int newCasterEid, int newTargetEid, int newZoneId, bool newIsFollow, Sog.Fixed64Vector2 newOffsetPos, ZoneLoopType newLoopType, Sog.Fixed64 newDuration, int newLoopCnt, Sog.Fixed64 newInterval, int newAttachAbilityId, int newEndAbilityId, Sog.Fixed64 newAccumulatedTime, bool newEntInvalidDestroy) { var index = CombatComponentsLookup.Zone; var component = (CoreGame.Render.ZoneComponent)CreateComponent(index, typeof(CoreGame.Render.ZoneComponent)); component.casterEid = newCasterEid; component.targetEid = newTargetEid; component.zoneId = newZoneId; component.isFollow = newIsFollow; component.offsetPos = newOffsetPos; component.loopType = newLoopType; component.duration = newDuration; component.loopCnt = newLoopCnt; component.interval = newInterval; component.attachAbilityId = newAttachAbilityId; component.endAbilityId = newEndAbilityId; component.accumulatedTime = newAccumulatedTime; component.entInvalidDestroy = newEntInvalidDestroy; ReplaceComponent(index, component); } public void RemoveZone() { RemoveComponent(CombatComponentsLookup.Zone); } } //------------------------------------------------------------------------------ // // 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 _matcherZone; public static Entitas.IMatcher Zone { get { if (_matcherZone == null) { var matcher = (Entitas.Matcher)Entitas.Matcher.AllOf(CombatComponentsLookup.Zone); matcher.componentNames = CombatComponentsLookup.componentNames; _matcherZone = matcher; } return _matcherZone; } } }