public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (SParticleEmitterLODLevel)base.Copy(context);

            var.distance = (CFloat)distance.Copy(context);
            return(var);
        }
Example #2
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (CDecalSpawner)base.Copy(context);

            var.material              = (SDynamicDecalMaterialInfo)material.Copy(context);
            var.farZ                  = (CFloat)farZ.Copy(context);
            var.nearZ                 = (CFloat)nearZ.Copy(context);
            var.ssize                 = (CPtr)ssize.Copy(context);
            var.depthFadePower        = (CFloat)depthFadePower.Copy(context);
            var.normalFadeBias        = (CFloat)normalFadeBias.Copy(context);
            var.normalFadeScale       = (CFloat)normalFadeScale.Copy(context);
            var.doubleSided           = (CBool)doubleSided.Copy(context);
            var.projectionMode        = (CName)projectionMode.Copy(context);
            var.decalLifetime         = (CPtr)decalLifetime.Copy(context);
            var.decalFadeTime         = (CFloat)decalFadeTime.Copy(context);
            var.decalFadeInTime       = (CFloat)decalFadeInTime.Copy(context);
            var.projectOnlyOnStatic   = (CBool)projectOnlyOnStatic.Copy(context);
            var.startScale            = (CFloat)startScale.Copy(context);
            var.scaleTime             = (CFloat)scaleTime.Copy(context);
            var.useVerticalProjection = (CBool)useVerticalProjection.Copy(context);
            var.spawnPriority         = (CName)spawnPriority.Copy(context);
            var.autoHideDistance      = (CFloat)autoHideDistance.Copy(context);
            var.spawnFrequency        = (CFloat)spawnFrequency.Copy(context);


            return(var);
        }
Example #3
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (SFoliageInstance)base.Copy(context);

            var.position = (CVector3D)position.Copy(context);
            var.Yaw      = (CFloat)Yaw.Copy(context);
            var.Pitch    = (CFloat)Pitch.Copy(context);
            var.Roll     = (CFloat)Roll.Copy(context);
            return(var);
        }
Example #4
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (ShBlendMultipleNodeData)base.Copy(context);

            var.index      = (CUInt32)index.Copy(context);
            var.blendvalue = (CFloat)blendvalue.Copy(context);


            return(var);
        }
Example #5
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (EmitterDurationSettings)base.Copy(context);

            var.emitterDuration         = (CFloat)emitterDuration.Copy(context);
            var.emitterDurationLow      = (CFloat)emitterDurationLow.Copy(context);
            var.useEmitterDurationRange = (CBool)useEmitterDurationRange.Copy(context);


            return(var);
        }
Example #6
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (CCameraCompressedPose)base.Copy(context);

            var.bytes1 = (CBytes)bytes1.Copy(context);
            var.float1 = (CFloat)float1.Copy(context);
            var.float2 = (CFloat)float2.Copy(context);
            var.bytes2 = (CBytes)bytes2.Copy(context);

            return(var);
        }
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (EmitterDelaySettings)base.Copy(context);

            var.emitterDelay         = (CFloat)emitterDelay.Copy(context);
            var.emitterDelayLow      = (CFloat)emitterDelayLow.Copy(context);
            var.useEmitterDelayRange = (CBool)useEmitterDelayRange.Copy(context);
            var.useEmitterDelayOnce  = (CBool)useEmitterDelayOnce.Copy(context);


            return(var);
        }
Example #8
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (SUmbraSceneData)base.Copy(context);

            var.positionX = (CFloat)positionX.Copy(context);
            var.positionY = (CFloat)positionY.Copy(context);
            var.positionZ = (CFloat)positionZ.Copy(context);
            var.positionW = (CFloat)positionW.Copy(context);
            var.umbratile = (CHandle)umbratile.Copy(context);

            return(var);
        }
Example #9
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (CSwarmCellMap)base.Copy(context);

            var.data           = (CByteArray)data.Copy(context);
            var.cornerPosition = (CVector3D)cornerPosition.Copy(context);
            var.dataSizeX      = (CInt32)dataSizeX.Copy(context);
            var.dataSizeY      = (CInt32)dataSizeY.Copy(context);
            var.dataSizeZ      = (CInt32)dataSizeZ.Copy(context);
            var.dataSize       = (CInt32)dataSize.Copy(context);
            var.sizeInKbytes   = (CFloat)sizeInKbytes.Copy(context);
            return(var);
        }
Example #10
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var copy = base.Copy(context) as CPaddedBuffer <T>;

            foreach (var element in elements)
            {
                copy.elements.Add(element.Copy(context) as T);
            }

            copy.padding = (CFloat)padding.Copy(context);

            return(copy);
        }
Example #11
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (CSectorDataObject)base.Copy(context);

            var.type      = (CUInt8)type.Copy(context);
            var.flags     = (CUInt8)flags.Copy(context);
            var.radius    = (CUInt16)radius.Copy(context);
            var.offset    = (CUInt64)offset.Copy(context);
            var.positionX = (CFloat)positionX.Copy(context);
            var.positionY = (CFloat)positionY.Copy(context);
            var.positionZ = (CFloat)positionZ.Copy(context);

            return(var);
        }
Example #12
0
        public override CVariable Copy(ICR2WCopyAction context)
        {
            var copy = base.Copy(context) as CPaddedBuffer <T>;

            //foreach (var element in elements)
            //{
            //    var ccopy = element.Copy(new CR2WCopyAction() { DestinationFile = context.DestinationFile, Parent = copy });
            //    if (ccopy is T copye)
            //        copy.elements.Add(copye);
            //}

            copy.padding = (CFloat)padding.Copy(context);

            return(copy);
        }
Example #13
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (SCurveData)base.Copy(context);

            var.time          = (CFloat)time.Copy(context);
            var.value         = (CFloat)value.Copy(context);
            var.controlPoint1 = (CQuaternion)controlPoint1.Copy(context);
            var.controlPoint1 = (CQuaternion)controlPoint2.Copy(context);
            var.curveTypeL    = (CUInt32)curveTypeL.Copy(context);
            var.curveTypeR    = (CUInt32)curveTypeR.Copy(context);
            //var.unk3 = (CUInt16)unk3.Copy(context);
            //var.unk4 = (CUInt16)unk4.Copy(context);

            return(var);
        }
Example #14
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (CParticleSystem)base.Copy(context);

            var.lods                   = (CArray)lods.Copy(context);
            var.emitters               = (CArray)emitters.Copy(context);
            var.autoHideDistance       = (CFloat)autoHideDistance.Copy(context);
            var.autoHideRange          = (CFloat)autoHideRange.Copy(context);
            var.previewBackgroundColor = (CColor)previewBackgroundColor.Copy(context);
            var.previewShowGrid        = (CBool)previewShowGrid.Copy(context);
            var.visibleThroughWalls    = (CBool)visibleThroughWalls.Copy(context);
            var.prewarmingTime         = (CFloat)prewarmingTime.Copy(context);
            var.renderingPlane         = (CName)renderingPlane.Copy(context);


            return(var);
        }
Example #15
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (SDynamicDecalMaterialInfo)base.Copy(context);

            var.diffuseTexture      = (CHandle)diffuseTexture.Copy(context);
            var.normalTexture       = (CHandle)normalTexture.Copy(context);
            var.specularColor       = (CColor)specularColor.Copy(context);
            var.specularScale       = (CFloat)specularScale.Copy(context);
            var.specularBase        = (CFloat)specularBase.Copy(context);
            var.specularity         = (CFloat)specularity.Copy(context);
            var.additiveNormals     = (CBool)additiveNormals.Copy(context);
            var.diffuseRandomColor0 = (CColor)diffuseRandomColor0.Copy(context);
            var.diffuseRandomColor1 = (CColor)diffuseRandomColor1.Copy(context);
            var.subUVType           = (CName)subUVType.Copy(context);


            return(var);
        }