Esempio 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_;
        }
Esempio n. 2
0
        public override BaseEvent Clone()
        {
            MoveActorDuration moveActorDuration = ClassObjPool <MoveActorDuration> .Get();

            moveActorDuration.CopyData(this);
            return(moveActorDuration);
        }