Exemplo n.º 1
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            MoveActorDuration moveActorDuration = src as MoveActorDuration;

            this.destId               = moveActorDuration.destId;
            this.actorId              = moveActorDuration.actorId;
            this.destPos              = moveActorDuration.destPos;
            this.moveDir              = moveActorDuration.moveDir;
            this.moveType             = moveActorDuration.moveType;
            this.moveDistance         = moveActorDuration.moveDistance;
            this.minMoveDistance      = moveActorDuration.minMoveDistance;
            this.moveSpeed            = moveActorDuration.moveSpeed;
            this.acceleration         = moveActorDuration.acceleration;
            this.lastMoveSpeed        = moveActorDuration.lastMoveSpeed;
            this.lastLerpMoveSpeed    = moveActorDuration.lastLerpMoveSpeed;
            this.enableRotate         = moveActorDuration.enableRotate;
            this.rotationTime         = moveActorDuration.rotationTime;
            this.teleport             = moveActorDuration.teleport;
            this.IgnoreCollision      = moveActorDuration.IgnoreCollision;
            this.bRecordPosition      = moveActorDuration.bRecordPosition;
            this.bUseRecordPosition   = moveActorDuration.bUseRecordPosition;
            this.bForbidMoveFollowing = moveActorDuration.bForbidMoveFollowing;
            this.done_     = moveActorDuration.done_;
            this.fromRot   = moveActorDuration.fromRot;
            this.toRot     = moveActorDuration.toRot;
            this.dir       = moveActorDuration.dir;
            this.moveTick  = moveActorDuration.moveTick;
            this.lastTime_ = moveActorDuration.lastTime_;
            this.actor_    = moveActorDuration.actor_;
        }
Exemplo n.º 2
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            MoveBulletDuration moveBulletDuration = src as MoveBulletDuration;

            this.targetId                      = moveBulletDuration.targetId;
            this.destId                        = moveBulletDuration.destId;
            this.MoveType                      = moveBulletDuration.MoveType;
            this.targetPosition                = moveBulletDuration.targetPosition;
            this.offsetDir                     = moveBulletDuration.offsetDir;
            this.velocity                      = moveBulletDuration.velocity;
            this.distance                      = moveBulletDuration.distance;
            this.gravity                       = moveBulletDuration.gravity;
            this.bMoveRotate                   = moveBulletDuration.bMoveRotate;
            this.bAdjustSpeed                  = moveBulletDuration.bAdjustSpeed;
            this.acceleration                  = moveBulletDuration.acceleration;
            this.bBulletUseDir                 = moveBulletDuration.bBulletUseDir;
            this.bUseIndicatorDir              = moveBulletDuration.bUseIndicatorDir;
            this.bReachDestStop                = moveBulletDuration.bReachDestStop;
            this.bResetMoveDistance            = moveBulletDuration.bResetMoveDistance;
            this.bMoveOnXAxis                  = moveBulletDuration.bMoveOnXAxis;
            this.rotateBodyDegreeSpeed         = moveBulletDuration.rotateBodyDegreeSpeed;
            this.rotateBodyRadius              = moveBulletDuration.rotateBodyRadius;
            this.rotateBodyHeight              = moveBulletDuration.rotateBodyHeight;
            this.rotateBodyFindEnemyLatency    = moveBulletDuration.rotateBodyFindEnemyLatency;
            this.rotateBodyFindEnemyRadius     = moveBulletDuration.rotateBodyFindEnemyRadius;
            this.rotateBodyFindEnemyCd         = moveBulletDuration.rotateBodyFindEnemyCd;
            this.rotateBodyBulletCount         = moveBulletDuration.rotateBodyBulletCount;
            this.bFindTargetByRotateBodyBullet = moveBulletDuration.bFindTargetByRotateBodyBullet;
            this.Context.CopyData(ref moveBulletDuration.Context);
        }
Exemplo n.º 3
0
 public override void OnUse()
 {
     base.OnUse();
     this.destId          = -1;
     this.actorId         = 0;
     this.destPos         = VInt3.zero;
     this.moveDir         = VInt3.zero;
     this.moveType        = ActorMoveType.Target;
     this.moveDistance    = 0;
     this.moveSpeed       = 0;
     this.acceleration    = 0;
     this.enableRotate    = true;
     this.rotationTime    = 0;
     this.teleport        = false;
     this.IgnoreCollision = false;
     this.done_           = false;
     this.fromRot         = Quaternion.identity;
     this.toRot           = Quaternion.identity;
     this.srcPos          = VInt3.zero;
     this.finalPos        = VInt3.zero;
     this.dir             = VInt3.zero;
     this.moveTick        = 0;
     this.lastTime_       = 0;
     this.actor_.Release();
     this.lastMoveSpeed        = 0;
     this.lastLerpMoveSpeed    = 0;
     this.bForbidMoveFollowing = false;
 }
 public void Reset(MoveBulletDuration InBulletDuration)
 {
     this.length                        = InBulletDuration.length;
     this.targetId                      = InBulletDuration.targetId;
     this.destId                        = InBulletDuration.destId;
     this.MoveType                      = InBulletDuration.MoveType;
     this.targetPosition                = InBulletDuration.targetPosition;
     this.offsetDir                     = InBulletDuration.offsetDir;
     this.velocity                      = InBulletDuration.velocity;
     this.acceleration                  = InBulletDuration.acceleration;
     this.distance                      = InBulletDuration.distance;
     this.gravity                       = InBulletDuration.gravity;
     this.bMoveRotate                   = InBulletDuration.bMoveRotate;
     this.bAdjustSpeed                  = InBulletDuration.bAdjustSpeed;
     this.bBulletUseDir                 = InBulletDuration.bBulletUseDir;
     this.bUseIndicatorDir              = InBulletDuration.bUseIndicatorDir;
     this.bReachDestStop                = InBulletDuration.bReachDestStop;
     this.bResetMoveDistance            = InBulletDuration.bResetMoveDistance;
     this.lastVelocity                  = (this.lastLerpVelocity = 0);
     this.stopLerpCondtion              = false;
     this.bMoveOnXAxis                  = InBulletDuration.bMoveOnXAxis;
     this.distanceZ0                    = InBulletDuration.distanceZ0;
     this.distanceZ1                    = InBulletDuration.distanceZ1;
     this.distanceX                     = InBulletDuration.distanceX;
     this.rotateBodyDegreeSpeed         = InBulletDuration.rotateBodyDegreeSpeed;
     this.rotateBodyRadius              = InBulletDuration.rotateBodyRadius;
     this.rotateBodyHeight              = InBulletDuration.rotateBodyHeight;
     this.rotateBodyFindEnemyLatency    = InBulletDuration.rotateBodyFindEnemyLatency;
     this.rotateBodyFindEnemyRadius     = InBulletDuration.rotateBodyFindEnemyRadius;
     this.rotateBodyFindEnemyCd         = InBulletDuration.rotateBodyFindEnemyCd;
     this.rotateBodyBulletCount         = InBulletDuration.rotateBodyBulletCount;
     this.bFindTargetByRotateBodyBullet = InBulletDuration.bFindTargetByRotateBodyBullet;
 }
Exemplo n.º 5
0
 public void CopyData(ref MoveBulletDurationContext r)
 {
     this.length             = r.length;
     this.targetId           = r.targetId;
     this.destId             = r.destId;
     this.MoveType           = r.MoveType;
     this.targetPosition     = r.targetPosition;
     this.offsetDir          = r.offsetDir;
     this.velocity           = r.velocity;
     this.acceleration       = r.acceleration;
     this.distance           = r.distance;
     this.gravity            = r.gravity;
     this.bMoveRotate        = r.bMoveRotate;
     this.bAdjustSpeed       = r.bAdjustSpeed;
     this.bBulletUseDir      = r.bBulletUseDir;
     this.bUseIndicatorDir   = r.bUseIndicatorDir;
     this.bReachDestStop     = r.bReachDestStop;
     this.bResetMoveDistance = r.bResetMoveDistance;
     this.skillContext       = r.skillContext;
     this.destPosition       = r.destPosition;
     this.lastTime           = r.lastTime;
     this.hitHeight          = r.hitHeight;
     this.tarActor           = r.tarActor;
     this.moveActor          = r.moveActor;
     this.gravityControler   = r.gravityControler;
     this.stopCondtion       = r.stopCondtion;
     this.moveDirection      = r.moveDirection;
     this.lerpDirection      = r.lerpDirection;
     this.lastVelocity       = r.lastVelocity;
     this.lastLerpVelocity   = r.lastLerpVelocity;
 }
 public void Reset(BulletTriggerDuration InBulletTrigger)
 {
     this.length             = InBulletTrigger.length;
     this.targetId           = InBulletTrigger.targetId;
     this.destId             = InBulletTrigger.destId;
     this.MoveType           = InBulletTrigger.MoveType;
     this.targetPosition     = InBulletTrigger.targetPosition;
     this.offsetDir          = InBulletTrigger.offsetDir;
     this.velocity           = InBulletTrigger.velocity;
     this.acceleration       = InBulletTrigger.acceleration;
     this.distance           = InBulletTrigger.distance;
     this.gravity            = InBulletTrigger.gravity;
     this.bMoveRotate        = InBulletTrigger.bMoveRotate;
     this.bAdjustSpeed       = InBulletTrigger.bAdjustSpeed;
     this.bBulletUseDir      = InBulletTrigger.bBulletUseDir;
     this.bUseIndicatorDir   = InBulletTrigger.bUseIndicatorDir;
     this.bReachDestStop     = InBulletTrigger.bReachDestStop;
     this.lastVelocity       = (this.lastLerpVelocity = 0);
     this.stopLerpCondtion   = false;
     this.bResetMoveDistance = false;
     this.bMoveOnXAxis       = InBulletTrigger.bMoveOnXAxis;
     this.distanceZ0         = InBulletTrigger.distanceZ0;
     this.distanceZ1         = InBulletTrigger.distanceZ1;
     this.distanceX          = InBulletTrigger.distanceX;
 }
Exemplo n.º 7
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            BulletTriggerDuration bulletTriggerDuration = src as BulletTriggerDuration;

            this.triggerId            = bulletTriggerDuration.triggerId;
            this.attackerId           = bulletTriggerDuration.attackerId;
            this.triggerInterval      = bulletTriggerDuration.triggerInterval;
            this.bFilterEnemy         = bulletTriggerDuration.bFilterEnemy;
            this.bFilterFriend        = bulletTriggerDuration.bFilterFriend;
            this.bFilterHero          = bulletTriggerDuration.bFilterHero;
            this.bFileterMonter       = bulletTriggerDuration.bFileterMonter;
            this.bFileterOrgan        = bulletTriggerDuration.bFileterOrgan;
            this.bFilterMyself        = bulletTriggerDuration.bFilterMyself;
            this.bFilterDead          = bulletTriggerDuration.bFilterDead;
            this.TriggerActorCount    = bulletTriggerDuration.TriggerActorCount;
            this.SelectMode           = bulletTriggerDuration.SelectMode;
            this.TriggerActorInterval = bulletTriggerDuration.TriggerActorInterval;
            this.CollideMaxCount      = bulletTriggerDuration.CollideMaxCount;
            this.bEdgeCheck           = bulletTriggerDuration.bEdgeCheck;
            this.bExtraBuff           = bulletTriggerDuration.bExtraBuff;
            this.SelfSkillCombineID_1 = bulletTriggerDuration.SelfSkillCombineID_1;
            this.SelfSkillCombineID_2 = bulletTriggerDuration.SelfSkillCombineID_2;
            this.SelfSkillCombineID_3 = bulletTriggerDuration.SelfSkillCombineID_3;
            this.TargetSkillCombine_1 = bulletTriggerDuration.TargetSkillCombine_1;
            this.TargetSkillCombine_2 = bulletTriggerDuration.TargetSkillCombine_2;
            this.TargetSkillCombine_3 = bulletTriggerDuration.TargetSkillCombine_3;
            this.bTriggerBullet       = bulletTriggerDuration.bTriggerBullet;
            this.BulletActionName     = bulletTriggerDuration.BulletActionName;
            this.targetId             = bulletTriggerDuration.targetId;
            this.destId           = bulletTriggerDuration.destId;
            this.MoveType         = bulletTriggerDuration.MoveType;
            this.targetPosition   = bulletTriggerDuration.targetPosition;
            this.offsetDir        = bulletTriggerDuration.offsetDir;
            this.velocity         = bulletTriggerDuration.velocity;
            this.distance         = bulletTriggerDuration.distance;
            this.gravity          = bulletTriggerDuration.gravity;
            this.bMoveRotate      = bulletTriggerDuration.bMoveRotate;
            this.bAdjustSpeed     = bulletTriggerDuration.bAdjustSpeed;
            this.bBulletUseDir    = bulletTriggerDuration.bBulletUseDir;
            this.bUseIndicatorDir = bulletTriggerDuration.bUseIndicatorDir;
            this.bReachDestStop   = bulletTriggerDuration.bReachDestStop;
            this.acceleration     = bulletTriggerDuration.acceleration;
            this.DependCheckType  = bulletTriggerDuration.DependCheckType;
            this.bMoveOnXAxis     = bulletTriggerDuration.bMoveOnXAxis;
            this.distanceZ0       = bulletTriggerDuration.distanceZ0;
            this.distanceZ1       = bulletTriggerDuration.distanceZ1;
            this.distanceX        = bulletTriggerDuration.distanceX;
            this.HitTriggerContext.CopyData(ref bulletTriggerDuration.HitTriggerContext);
            this.MoveBulletContext.CopyData(ref bulletTriggerDuration.MoveBulletContext);
        }
 public void CopyData(ref MoveBulletDurationContext r)
 {
     this.length                          = r.length;
     this.targetId                        = r.targetId;
     this.destId                          = r.destId;
     this.MoveType                        = r.MoveType;
     this.targetPosition                  = r.targetPosition;
     this.offsetDir                       = r.offsetDir;
     this.velocity                        = r.velocity;
     this.acceleration                    = r.acceleration;
     this.distance                        = r.distance;
     this.gravity                         = r.gravity;
     this.bMoveRotate                     = r.bMoveRotate;
     this.bAdjustSpeed                    = r.bAdjustSpeed;
     this.bBulletUseDir                   = r.bBulletUseDir;
     this.bUseIndicatorDir                = r.bUseIndicatorDir;
     this.bReachDestStop                  = r.bReachDestStop;
     this.bResetMoveDistance              = r.bResetMoveDistance;
     this.skillContext                    = r.skillContext;
     this.destPosition                    = r.destPosition;
     this.lastTime                        = r.lastTime;
     this.hitHeight                       = r.hitHeight;
     this.tarActor                        = r.tarActor;
     this.originateActor                  = r.originateActor;
     this.moveActor                       = r.moveActor;
     this.gravityControler                = r.gravityControler;
     this.stopCondtion                    = r.stopCondtion;
     this.moveDirection                   = r.moveDirection;
     this.lerpDirection                   = r.lerpDirection;
     this.lastVelocity                    = r.lastVelocity;
     this.lastLerpVelocity                = r.lastLerpVelocity;
     this.zCurPosition                    = r.zCurPosition;
     this.xDirection                      = r.xDirection;
     this.bMoveOnXAxis                    = r.bMoveOnXAxis;
     this.distanceZ0                      = r.distanceZ0;
     this.distanceZ1                      = r.distanceZ1;
     this.distanceX                       = r.distanceX;
     this.zDirection                      = r.zDirection;
     this.xDestPosition                   = r.xDestPosition;
     this.rotateBodyDegreeSpeed           = r.rotateBodyDegreeSpeed;
     this.rotateBodyRadius                = r.rotateBodyRadius;
     this.rotateBodyHeight                = r.rotateBodyHeight;
     this.rotateBodyFindEnemyLatency      = r.rotateBodyFindEnemyLatency;
     this.rotateBodyFindEnemyRadius       = r.rotateBodyFindEnemyRadius;
     this.rotateBodyFindEnemyCd           = r.rotateBodyFindEnemyCd;
     this.rotateBodyBulletCount           = r.rotateBodyBulletCount;
     this.bFindTargetByRotateBodyBullet   = r.bFindTargetByRotateBodyBullet;
     this.rotateBodyCurDirDegreeAngle     = r.rotateBodyCurDirDegreeAngle;
     this.lerpRotateBodyCurDirDegreeAngle = r.lerpRotateBodyCurDirDegreeAngle;
 }
 public void Reset(MoveBulletDuration InBulletDuration)
 {
     this.length         = InBulletDuration.length;
     this.targetId       = InBulletDuration.targetId;
     this.destId         = InBulletDuration.destId;
     this.MoveType       = InBulletDuration.MoveType;
     this.targetPosition = InBulletDuration.targetPosition;
     this.offsetDir      = InBulletDuration.offsetDir;
     this.velocity       = InBulletDuration.velocity;
     this.distance       = InBulletDuration.distance;
     this.gravity        = InBulletDuration.gravity;
     this.bMoveRotate    = InBulletDuration.bMoveRotate;
     this.bAdjustSpeed   = InBulletDuration.bAdjustSpeed;
 }
 public void Reset(BulletTriggerDuration InBulletTrigger)
 {
     this.length         = InBulletTrigger.length;
     this.targetId       = InBulletTrigger.targetId;
     this.destId         = InBulletTrigger.destId;
     this.MoveType       = InBulletTrigger.MoveType;
     this.targetPosition = InBulletTrigger.targetPosition;
     this.offsetDir      = InBulletTrigger.offsetDir;
     this.velocity       = InBulletTrigger.velocity;
     this.distance       = InBulletTrigger.distance;
     this.gravity        = InBulletTrigger.gravity;
     this.bMoveRotate    = InBulletTrigger.bMoveRotate;
     this.bAdjustSpeed   = InBulletTrigger.bAdjustSpeed;
 }
Exemplo n.º 11
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            MoveBulletDuration duration = src as MoveBulletDuration;

            this.targetId       = duration.targetId;
            this.destId         = duration.destId;
            this.MoveType       = duration.MoveType;
            this.targetPosition = duration.targetPosition;
            this.offsetDir      = duration.offsetDir;
            this.velocity       = duration.velocity;
            this.distance       = duration.distance;
            this.gravity        = duration.gravity;
            this.bMoveRotate    = duration.bMoveRotate;
            this.bAdjustSpeed   = duration.bAdjustSpeed;
            this.Context.CopyData(ref duration.Context);
        }
Exemplo n.º 12
0
 public void Reset(MoveBulletDuration InBulletDuration)
 {
     this.length           = InBulletDuration.length;
     this.targetId         = InBulletDuration.targetId;
     this.destId           = InBulletDuration.destId;
     this.MoveType         = InBulletDuration.MoveType;
     this.targetPosition   = InBulletDuration.targetPosition;
     this.offsetDir        = InBulletDuration.offsetDir;
     this.velocity         = InBulletDuration.velocity;
     this.acceleration     = InBulletDuration.acceleration;
     this.distance         = InBulletDuration.distance;
     this.gravity          = InBulletDuration.gravity;
     this.bMoveRotate      = InBulletDuration.bMoveRotate;
     this.bAdjustSpeed     = InBulletDuration.bAdjustSpeed;
     this.bBulletUseDir    = InBulletDuration.bBulletUseDir;
     this.lastVelocity     = this.lastLerpVelocity = 0;
     this.stopLerpCondtion = false;
 }
Exemplo n.º 13
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            BulletTriggerDuration duration = src as BulletTriggerDuration;

            this.triggerId            = duration.triggerId;
            this.attackerId           = duration.attackerId;
            this.triggerInterval      = duration.triggerInterval;
            this.bFilterEnemy         = duration.bFilterEnemy;
            this.bFilterFriend        = duration.bFilterFriend;
            this.bFilterHero          = duration.bFilterHero;
            this.bFileterMonter       = duration.bFileterMonter;
            this.bFileterOrgan        = duration.bFileterOrgan;
            this.bFilterMyself        = duration.bFilterMyself;
            this.bFilterDead          = duration.bFilterDead;
            this.TriggerActorCount    = duration.TriggerActorCount;
            this.TriggerActorInterval = duration.TriggerActorInterval;
            this.CollideMaxCount      = duration.CollideMaxCount;
            this.bEdgeCheck           = duration.bEdgeCheck;
            this.bExtraBuff           = duration.bExtraBuff;
            this.SelfSkillCombineID_1 = duration.SelfSkillCombineID_1;
            this.SelfSkillCombineID_2 = duration.SelfSkillCombineID_2;
            this.SelfSkillCombineID_3 = duration.SelfSkillCombineID_3;
            this.TargetSkillCombine_1 = duration.TargetSkillCombine_1;
            this.TargetSkillCombine_2 = duration.TargetSkillCombine_2;
            this.TargetSkillCombine_3 = duration.TargetSkillCombine_3;
            this.bTriggerBullet       = duration.bTriggerBullet;
            this.BulletActionName     = duration.BulletActionName;
            this.targetId             = duration.targetId;
            this.destId          = duration.destId;
            this.MoveType        = duration.MoveType;
            this.targetPosition  = duration.targetPosition;
            this.offsetDir       = duration.offsetDir;
            this.velocity        = duration.velocity;
            this.distance        = duration.distance;
            this.gravity         = duration.gravity;
            this.bMoveRotate     = duration.bMoveRotate;
            this.bAdjustSpeed    = duration.bAdjustSpeed;
            this.DependCheckType = duration.DependCheckType;
            this.HitTriggerContext.CopyData(ref duration.HitTriggerContext);
            this.MoveBulletContext.CopyData(ref duration.MoveBulletContext);
        }
Exemplo n.º 14
0
        protected override void CopyData(BaseEvent src)
        {
            base.CopyData(src);
            MoveBulletDuration moveBulletDuration = src as MoveBulletDuration;

            this.targetId           = moveBulletDuration.targetId;
            this.destId             = moveBulletDuration.destId;
            this.MoveType           = moveBulletDuration.MoveType;
            this.targetPosition     = moveBulletDuration.targetPosition;
            this.offsetDir          = moveBulletDuration.offsetDir;
            this.velocity           = moveBulletDuration.velocity;
            this.distance           = moveBulletDuration.distance;
            this.gravity            = moveBulletDuration.gravity;
            this.bMoveRotate        = moveBulletDuration.bMoveRotate;
            this.bAdjustSpeed       = moveBulletDuration.bAdjustSpeed;
            this.acceleration       = moveBulletDuration.acceleration;
            this.bBulletUseDir      = moveBulletDuration.bBulletUseDir;
            this.bUseIndicatorDir   = moveBulletDuration.bUseIndicatorDir;
            this.bReachDestStop     = moveBulletDuration.bReachDestStop;
            this.bResetMoveDistance = moveBulletDuration.bResetMoveDistance;
            this.Context.CopyData(ref moveBulletDuration.Context);
        }