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.
 
 
 
 
 
 

90 lines
4.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.BulletComponent bullet { get { return (CoreGame.Render.BulletComponent)GetComponent(CombatComponentsLookup.Bullet); } }
public bool hasBullet { get { return HasComponent(CombatComponentsLookup.Bullet); } }
public void AddBullet(int newCasterEid, ElementType newElementType, CoreGame.Render.BulletFromType newBulletFromType, int newBulletCfgId, Sog.Fixed64 newExistTime, Sog.Fixed64 newMaxDistance, Sog.Fixed64 newScale, Sog.Fixed64 newSpeed, ColliderType newColliderType, Sog.Fixed64 newColliderParam1, Sog.Fixed64 newColliderParam2, int newCollideWith, int newCollisionCnt, Sog.Fixed64 newCollisionInterval, int newAbilityId, int newEndAbilityId, bool newIsTriggerHitSkillOnEnd, System.Collections.Generic.List<CoreGame.Render.HitData> newHitDatas) {
var index = CombatComponentsLookup.Bullet;
var component = (CoreGame.Render.BulletComponent)CreateComponent(index, typeof(CoreGame.Render.BulletComponent));
component.casterEid = newCasterEid;
component.elementType = newElementType;
component.bulletFromType = newBulletFromType;
component.bulletCfgId = newBulletCfgId;
component.existTime = newExistTime;
component.maxDistance = newMaxDistance;
component.scale = newScale;
component.speed = newSpeed;
component.colliderType = newColliderType;
component.colliderParam1 = newColliderParam1;
component.colliderParam2 = newColliderParam2;
component.collideWith = newCollideWith;
component.collisionCnt = newCollisionCnt;
component.collisionInterval = newCollisionInterval;
component.abilityId = newAbilityId;
component.endAbilityId = newEndAbilityId;
component.isTriggerHitSkillOnEnd = newIsTriggerHitSkillOnEnd;
component.hitDatas = newHitDatas;
AddComponent(index, component);
}
public void ReplaceBullet(int newCasterEid, ElementType newElementType, CoreGame.Render.BulletFromType newBulletFromType, int newBulletCfgId, Sog.Fixed64 newExistTime, Sog.Fixed64 newMaxDistance, Sog.Fixed64 newScale, Sog.Fixed64 newSpeed, ColliderType newColliderType, Sog.Fixed64 newColliderParam1, Sog.Fixed64 newColliderParam2, int newCollideWith, int newCollisionCnt, Sog.Fixed64 newCollisionInterval, int newAbilityId, int newEndAbilityId, bool newIsTriggerHitSkillOnEnd, System.Collections.Generic.List<CoreGame.Render.HitData> newHitDatas) {
var index = CombatComponentsLookup.Bullet;
var component = (CoreGame.Render.BulletComponent)CreateComponent(index, typeof(CoreGame.Render.BulletComponent));
component.casterEid = newCasterEid;
component.elementType = newElementType;
component.bulletFromType = newBulletFromType;
component.bulletCfgId = newBulletCfgId;
component.existTime = newExistTime;
component.maxDistance = newMaxDistance;
component.scale = newScale;
component.speed = newSpeed;
component.colliderType = newColliderType;
component.colliderParam1 = newColliderParam1;
component.colliderParam2 = newColliderParam2;
component.collideWith = newCollideWith;
component.collisionCnt = newCollisionCnt;
component.collisionInterval = newCollisionInterval;
component.abilityId = newAbilityId;
component.endAbilityId = newEndAbilityId;
component.isTriggerHitSkillOnEnd = newIsTriggerHitSkillOnEnd;
component.hitDatas = newHitDatas;
ReplaceComponent(index, component);
}
public void RemoveBullet() {
RemoveComponent(CombatComponentsLookup.Bullet);
}
}
//------------------------------------------------------------------------------
// <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> _matcherBullet;
public static Entitas.IMatcher<CombatEntity> Bullet {
get {
if (_matcherBullet == null) {
var matcher = (Entitas.Matcher<CombatEntity>)Entitas.Matcher<CombatEntity>.AllOf(CombatComponentsLookup.Bullet);
matcher.componentNames = CombatComponentsLookup.componentNames;
_matcherBullet = matcher;
}
return _matcherBullet;
}
}
}