Пример #1
0
    public AnimationStep GetCopy(BattleAnimation battleAnimation)
    {
        AnimationStep s = battleAnimation.TypeToStep(this.type);

        s.fold = this.fold;
        s.next = this.next;
        s.nextFail = this.nextFail;
        s.stepEnabled = this.stepEnabled;

        s.time = this.time;
        s.intensity = this.intensity;
        s.speed = this.speed;
        s.volume = this.volume;
        s.float1 = this.float1;
        s.float2 = this.float2;
        s.float3 = this.float3;
        s.float4 = this.float4;
        s.float5 = this.float5;
        s.float6 = this.float6;
        s.float7 = this.float7;
        s.float8 = this.float8;

        s.actorID = this.actorID;
        s.posID = this.posID;
        s.spawnID = this.spawnID;
        s.min = this.min;
        s.max = this.max;
        s.itemID = this.itemID;
        s.weaponID = this.weaponID;
        s.armorID = this.armorID;
        s.number = this.number;
        s.characterID = this.characterID;
        s.waypointID = this.waypointID;
        s.prefabID = this.prefabID;
        s.prefabID2 = this.prefabID2;
        s.skillID = this.skillID;
        s.audioID = this.audioID;
        s.formulaID = this.formulaID;

        s.wait = this.wait;
        s.useDefault = this.useDefault;
        s.useDefault2 = this.useDefault2;
        s.show = this.show;
        s.show2 = this.show2;
        s.show3 = this.show3;
        s.show4 = this.show4;
        s.show5 = this.show5;
        s.show6 = this.show6;
        s.show7 = this.show7;
        s.showShadow = this.showShadow;
        s.controller = this.controller;

        s.interpolate = this.interpolate;
        s.playMode = this.playMode;
        s.queueMode = this.queueMode;
        s.statusOrigin = this.statusOrigin;
        s.statusOrigin2 = this.statusOrigin2;
        s.combatantAnimation = this.combatantAnimation;
        s.moveToTarget = this.moveToTarget;
        s.audioRolloffMode = this.audioRolloffMode;

        s.rect = this.rect;
        s.rect2 = this.rect2;
        s.v2 = this.v2;
        s.v3 = this.v3;
        s.v3_2 = this.v3_2;
        s.v4 = this.v4;
        s.v4_2 = this.v4_2;

        s.message = new string[this.message.Length];
        System.Array.Copy(this.message, s.message, this.message.Length);
        s.key = this.key;
        s.value = this.value;
        s.effect = new SkillEffect[this.effect.Length];
        System.Array.Copy(this.effect, s.effect, this.effect.Length);

        s.simpleOperator = this.simpleOperator;
        s.valueCheck = this.valueCheck;
        s.animationObject = this.animationObject;

        s.pathToChild = this.pathToChild;

        return s;
    }