protected override void CloneData(CommandNode node) { base.CloneData(node); CNTriggerByExplosion clone = (CNTriggerByExplosion)node; clone.fieldExplosions_ = fieldExplosions_.DeepClone(); clone.fieldBodies_ = fieldBodies_.DeepClone(); }
protected override void CloneData(CommandNode node) { base.CloneData(node); CNAimedForce clone = (CNAimedForce)node; clone.fieldAimGameObjects_ = fieldAimGameObjects_.DeepClone(); clone.timeDuration_ = timeDuration_; clone.multiplier_r_ = multiplier_r_; clone.multiplier_q_ = multiplier_q_; }
//----------------------------------------------------------------------------------- protected override void CloneData(CommandNode node) { base.CloneData(node); CNMonoField clone = (CNMonoField)node; if (field_ != null) { clone.field_ = field_.DeepClone(); } }
protected override void CloneData(CommandNode node) { base.CloneData(node); CNTriggerByDetector clone = (CNTriggerByDetector)node; clone.fieldA_ = fieldA_.DeepClone(); clone.fieldB_ = fieldB_.DeepClone(); clone.triggerForInvolvedBodies_ = TriggerForInvolvedBodies; }
protected override void CloneData(CommandNode node) { base.CloneData(node); CNAimedFall clone = (CNAimedFall)node; clone.fieldAimGameObjects_ = fieldAimGameObjects_.DeepClone(); clone.speedRate_ = speedRate_; clone.release_threshold_ = release_threshold_; }
protected override void CloneData(CommandNode node) { base.CloneData(node); CNTriggerByForce clone = (CNTriggerByForce)node; clone.fieldA_ = fieldA_.DeepClone(); clone.forceMin_ = forceMin_; clone.isForcePerMass_ = isForcePerMass_; clone.triggerForInvolvedBodies_ = TriggerForInvolvedBodies; }
protected override void CloneData(CommandNode node) { base.CloneData(node); CNTriggerByContact clone = (CNTriggerByContact)node; clone.fieldA_ = fieldA_.DeepClone(); clone.fieldB_ = fieldB_.DeepClone(); clone.speedMin_ = SpeedMinN; clone.speedMin_T_ = SpeedMinT; clone.triggerForInvolvedBodies_ = TriggerForInvolvedBodies; }
public override CommandNode DeepClone(GameObject dataHolder) { CNTriggerByExplosion clone = CommandNode.CreateInstance <CNTriggerByExplosion>(dataHolder); clone.field_ = field_.DeepClone(); clone.fieldExplosions_ = fieldExplosions_.DeepClone(); clone.fieldBodies_ = fieldBodies_.DeepClone(); clone.Name = Name; clone.timer_ = Timer; return(clone); }
public override CommandNode DeepClone(GameObject dataHolder) { CNSubstituter clone = CommandNode.CreateInstance <CNSubstituter>(dataHolder); clone.field_ = field_.DeepClone(); clone.fieldA_ = fieldA_.DeepClone(); clone.fieldB_ = fieldB_.DeepClone(); clone.Name = Name; clone.timer_ = Timer; clone.Probability = probability_; clone.ProbabilitySeed = probabilitySeed_; return(clone); }
public override CommandNode DeepClone(GameObject dataHolder) { CNAimedForce clone = CommandNode.CreateInstance <CNAimedForce>(dataHolder); clone.field_ = field_.DeepClone(); clone.fieldAimGameObjects_ = fieldAimGameObjects_.DeepClone(); clone.Name = Name; clone.timer_ = Timer; clone.timeDuration_ = timeDuration_; clone.multiplier_r_ = multiplier_r_; clone.multiplier_q_ = multiplier_q_; return(clone); }
public override CommandNode DeepClone(GameObject dataHolder) { CNTriggerByContact clone = CommandNode.CreateInstance <CNTriggerByContact>(dataHolder); clone.field_ = field_.DeepClone(); clone.fieldA_ = fieldA_.DeepClone(); clone.fieldB_ = fieldB_.DeepClone(); clone.Name = Name; clone.timer_ = Timer; clone.speedMin_ = SpeedMinN; clone.speedMin_T_ = SpeedMinT; clone.triggerForInvolvedBodies_ = TriggerForInvolvedBodies; return(clone); }
//---------------------------------------------------------------------------------- protected override void CloneData(CommandNode node) { base.CloneData(node); CNContactEmitter clone = (CNContactEmitter)node; clone.fieldA_ = fieldA_.DeepClone(); clone.fieldB_ = fieldB_.DeepClone(); clone.emitMode_ = emitMode_; clone.maxEventsPerSecond_ = maxEventsPerSecond_; clone.relativeSpeedMin_N_ = relativeSpeedMin_N_; clone.relativeSpeedMin_T_ = relativeSpeedMin_T_; clone.relativeMomentum_N_ = relativeMomentum_N_; clone.relativeMomentum_T_ = relativeMomentum_T_; clone.lifeTimMinInSecs_ = lifeTimMinInSecs_; clone.collapseRadius_ = collapseRadius_; }
//---------------------------------------------------------------------------------- public override CommandNode DeepClone(GameObject dataHolder) { CNContactEmitter clone = CommandNode.CreateInstance <CNContactEmitter>(dataHolder); clone.fieldA_ = fieldA_.DeepClone(); clone.fieldB_ = fieldB_.DeepClone(); clone.emitMode_ = emitMode_; clone.maxEventsPerSecond_ = maxEventsPerSecond_; clone.relativeSpeedMin_N_ = relativeSpeedMin_N_; clone.relativeSpeedMin_T_ = relativeSpeedMin_T_; clone.relativeMomentum_N_ = relativeMomentum_N_; clone.relativeMomentum_T_ = relativeMomentum_T_; clone.lifeTimMinInSecs_ = lifeTimMinInSecs_; clone.collapseRadius_ = collapseRadius_; return(clone); }
protected override void CloneData(CommandNode node) { base.CloneData(node); CNFracture clone = (CNFracture)node; if (fieldRestrictionGeometry_ != null) { clone.fieldRestrictionGeometry_ = fieldRestrictionGeometry_.DeepClone(); } if (fieldSteeringGeometry_ != null) { clone.fieldSteeringGeometry_ = fieldSteeringGeometry_.DeepClone(); } clone.chopMode_ = chopMode_; clone.doGlobalPattern_ = doGlobalPattern_; clone.nDesiredPieces_ = nDesiredPieces_; clone.seed_ = seed_; clone.chopGeometry_ = chopGeometry_; clone.gridResolution_ = gridResolution_; clone.focusMode_ = focusMode_; clone.densityRate_ = densityRate_; clone.transitionLength_ = transitionLength_; clone.referenceSystem_ = referenceSystem_; clone.referenceSystemAxis_ = referenceSystemAxis_; clone.rays_number_ = rays_number_; clone.rays_rateRand_ = rays_number_; clone.rings_numberInsideAnnulus_ = rings_numberInsideAnnulus_; clone.rings_intRadius_ = rings_numberInsideAnnulus_; clone.rings_extRadius_ = rings_extRadius_; clone.rings_intTransitionLength_ = rings_intTransitionLength_; clone.rings_extTransitionLength_ = rings_extTransitionLength_; clone.rings_intTransitionDecay_ = rings_intTransitionDecay_; clone.rings_extTransitionDecay_ = rings_extTransitionDecay_; clone.rings_rateRand_ = rings_rateRand_; clone.doCentralPiece_ = doCentralPiece_; clone.noiseRate_ = noiseRate_; clone.twistRate_ = twistRate_; clone.doExtrusionEffect_ = doExtrusionEffect_; clone.doCoordinate_ = doCoordinate_; clone.arrGameObject_chopped_ = arrGameObject_chopped_; clone.interiorMaterial_ = interiorMaterial_; clone.hideParentObjectsAuto_ = hideParentObjectsAuto_; clone.restrictFractureZone_ = restrictFractureZone_; clone.cropGeometry_ = cropGeometry_; clone.cropMode_ = cropMode_; clone.frontierPieces_ = frontierPieces_; clone.weldInOnePiece_ = weldInOnePiece_; clone.doNoise_ = doNoise_; clone.noiseResolutionRate_ = noiseResolutionRate_; clone.noiseReliefAmplitudeRate_ = noiseReliefAmplitudeRate_; clone.noiseReliefSerrationRate_ = noiseReliefSerrationRate_;; clone.noiseSeed0_ = noiseSeed0_; clone.noiseDoExtrusionEffect_ = noiseDoExtrusionEffect_; clone.internalFacesSmoothingAngle_ = internalFacesSmoothingAngle_; clone.interiorFacesTiling_ = interiorFacesTiling_; clone.interiorFacesOffset_ = interiorFacesOffset_; clone.generateNewSubmeshForInteriorFaces_ = generateNewSubmeshForInteriorFaces_; }