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.
80 lines
3.9 KiB
80 lines
3.9 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.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);
|
|
}
|
|
}
|
|
|
|
//------------------------------------------------------------------------------
|
|
// <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> _matcherZone;
|
|
|
|
public static Entitas.IMatcher<CombatEntity> Zone {
|
|
get {
|
|
if (_matcherZone == null) {
|
|
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.Zone);
|
|
matcher.componentNames = CombatComponentsLookup.componentNames;
|
|
_matcherZone = matcher;
|
|
}
|
|
|
|
return _matcherZone;
|
|
}
|
|
}
|
|
}
|
|
|