Beispiel #1
0
 public KnockdownInfo(Target target, float successRate, float delayToApply, WeightLevel level,
                      float height, float timeToPeak, float timeToGround, float distance,
                      float lieDuration, float lieToIdleDuration, float floatingDur,
                      bool enableWallHit,
                      SsarTuple <AnimMix, PlayMethod, float>[] animationMixingTable,
                      List <JumpAction.Event> events, List <VfxConfig> vfxs,
                      MovementBehavior movementBehavior, FacingBehavior facingBehavior,
                      Requirement requirement, List <LifetimeConfig> lifetimeConfigs,
                      bool moveHorizontallyWhenFloat,
                      bool stopHorizontalMovementWhenMeet,
                      string icon = BaseModifierConfig.NO_ICON)
 {
     this.target               = target;
     this.successRate          = successRate;
     this.delayToApply         = delayToApply;
     this.level                = level;
     this.height               = height;
     this.timeToPeak           = timeToPeak;
     this.timeToGround         = timeToGround;
     this.distance             = distance;
     this.lieDuration          = lieDuration;
     this.lieToIdleDuration    = lieToIdleDuration;
     this.floatingDur          = floatingDur;
     this.enableWallHit        = enableWallHit;
     this.animationMixingTable = animationMixingTable;
     this.vfxs                           = vfxs;
     this.movementBehavior               = movementBehavior;
     this.facingBehavior                 = facingBehavior;
     this.requirement                    = requirement;
     this.lifetimeConfigs                = lifetimeConfigs;
     this.moveHorizontallyWhenFloat      = moveHorizontallyWhenFloat;
     this.stopHorizontalMovementWhenMeet = stopHorizontalMovementWhenMeet;
     this.icon                           = icon;
     this.events.AddRange(events);
 }
Beispiel #2
0
 public StaggerInfo(Target target, Skill parentSkill,
                    float distance, float movementDuration, float successRate,
                    float delayToApply, WeightLevel level, Behavior[] behaviors,
                    string overrideAnimation, List <VfxConfig> vfxs,
                    MovementBehavior movementBehavior, FacingBehavior facingBehavior,
                    StaggerModifierConfig.Requirement requirement,
                    List <LifetimeConfig> lifetimeConfigs,
                    string loopAnimation = null, float crossfadeLength = 0.1f, int animFrame = 0,
                    string icon          = BaseModifierConfig.NO_ICON)
 {
     this.target            = target;
     this.parentSkill       = parentSkill;
     this.distance          = distance;
     this.movementDuration  = movementDuration;
     this.successRate       = successRate;
     this.delayToApply      = delayToApply;
     this.level             = level;
     this.overrideAnimation = overrideAnimation;
     this.vfxs             = vfxs;
     this.movementBehavior = movementBehavior;
     this.facingBehavior   = facingBehavior;
     this.requirement      = requirement;
     this.lifetimeConfigs  = lifetimeConfigs;
     this.loopAnimation    = loopAnimation;
     this.crossfadeLength  = crossfadeLength;
     this.animFrame        = animFrame;
     this.icon             = icon;
     if (behaviors != null)
     {
         this.behaviors = behaviors;
     }
 }
Beispiel #3
0
 public DashInfo(Target target, Skill parentSkill, float distance, float movementDuration,
                 float successRate, float delayToApply, WeightLevel level, Behavior[] behaviors,
                 string overrideAnimation, List <VfxConfig> vfxs,
                 MovementBehavior movementBehavior, FacingBehavior facingBehavior,
                 bool enableAnim, List <LifetimeConfig> lifetimeConfigs) : base(target, parentSkill, distance, movementDuration, successRate, delayToApply, level, behaviors, overrideAnimation, vfxs, movementBehavior, facingBehavior, StaggerModifierConfig.Requirement.Any, lifetimeConfigs)
 {
     this.enableAnim = enableAnim;
 }
Beispiel #4
0
 public TripInfo(Target target, float successRate, float delayToApply, WeightLevel level, float height,
                 float timeToPeak, float timeToGround, float distance, float lieDuration, float lieToIdleDuration,
                 float floatingDur, bool enableWallHit,
                 SsarTuple <AnimMix, PlayMethod, float>[] animationMixingTable,
                 List <JumpAction.Event> events, List <VfxConfig> vfxs,
                 MovementBehavior movementBehavior, FacingBehavior facingBehavior,
                 Requirement requirement, List <LifetimeConfig> lifetimeConfigs,
                 bool moveHorizontallyWhenFloat,
                 bool stopHorizontalMovementWhenMeet)
     : base(target, successRate, delayToApply, level, height, timeToPeak, timeToGround, distance, lieDuration, lieToIdleDuration,
            floatingDur, enableWallHit, animationMixingTable, events, vfxs, movementBehavior, facingBehavior, requirement, lifetimeConfigs, moveHorizontallyWhenFloat, stopHorizontalMovementWhenMeet)
 {
 }
Beispiel #5
0
 public BlastInfo(Target target, float successRate, float delayToApply, WeightLevel level, float height,
                  float timeToPeak, float timeToGround, float flightDistance, float flightMinSpeed,
                  float rollDistance, float timeToRoll, float timeToLie, float lieToIdleDuration,
                  bool enableWallHit,
                  SsarTuple <AnimMix, PlayMethod, float>[] animationMixingTable,
                  List <JumpAction.Event> events,
                  BlastModifierConfig.AnimationProfile animationProfile,
                  List <VfxConfig> vfxs,
                  MovementBehavior movementBehavior, FacingBehavior facingBehavior,
                  Requirement requirement, List <LifetimeConfig> lifetimeConfigs,
                  string icon = BaseModifierConfig.NO_ICON)
 {
     this.target               = target;
     this.successRate          = successRate;
     this.delayToApply         = delayToApply;
     this.level                = level;
     this.height               = height;
     this.timeToPeak           = timeToPeak;
     this.timeToGround         = timeToGround;
     this.flightDistance       = flightDistance;
     this.flightMinSpeed       = flightMinSpeed;
     this.rollDistance         = rollDistance;
     this.timeToRoll           = timeToRoll;
     this.timeToLie            = timeToLie;
     this.lieToIdleDuration    = lieToIdleDuration;
     this.enableWallHit        = enableWallHit;
     this.animationMixingTable = animationMixingTable;
     this.animationProfile     = animationProfile;
     this.vfxs             = vfxs;
     this.movementBehavior = movementBehavior;
     this.facingBehavior   = facingBehavior;
     this.requirement      = requirement;
     this.lifetimeConfigs  = lifetimeConfigs;
     this.icon             = icon;
     this.events.AddRange(events);
 }
Beispiel #6
0
        public StunModifier(StunInfo info, WeightLevel forceLevel, Entity casterEntity, Entity targetEntity,
                            Vector3 collidedProjectilePosition, Environment environment,
                            CollectionOfInteractions modifierInteractionCollection)
            : base(
                new StaggerInfo(
                    info.Target(), info.ShowParentSkill(),
                    info.Config.distance, info.Config.movementDuration,
                    info.ShowSuccessRate(), info.DelayToApply(),
                    forceLevel, info.ShowBehaviors(), info.Config.overrideAnimation,
                    info.ShowVfxConfig(), info.Config.ShowMovementBehavior(), info.Config.ShowFacingBehavior(),
                    StaggerModifierConfig.Requirement.Any, info.ShowLifetimeConfigs(),
                    info.Config.loopAnimation,
                    info.Config.crossfade, info.Config.animFrame
                    ),
                casterEntity, targetEntity, collidedProjectilePosition, environment, modifierInteractionCollection
                )
        {
            this.info = info;
            bool found;

            extraStunDuration = targetEntity.GetComponent <StatsComponent>().CharacterStats
                                .FindStats(StatsType.ExtraStunDuration, out found);
            animComponent = targetEntity.GetComponent <AnimationComponent>();
        }