Esempio n. 1
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);
        }
Esempio n. 2
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (IdHandle)base.Copy(context);

            var.handlename = (CName)handlename.Copy(context);
            var.handle     = (CHandle)handle.Copy(context);


            return(var);
        }
Esempio n. 3
0
        public override CVariable Copy(CR2WCopyAction context)
        {
            var var = (CFXTrackItem)base.Copy(context);

            var.buffername = (CName)buffername.Copy(context);
            var.count      = (CDynamicInt)count.Copy(context);
            var.unk        = (CUInt8)unk.Copy(context);
            var.buffer     = (CCompressedBuffer <CBufferUInt16 <CFloat> >)buffer.Copy(context);

            return(var);
        }
Esempio n. 4
0
            public override CVariable Copy(CR2WCopyAction context)
            {
                var copy = base.Copy(context) as CurveInfo;

                copy.someName = someName.Copy(context) as CName;
                copy.someByte = someByte.Copy(context) as CUInt8;

                foreach (var piece in pieces)
                {
                    copy.pieces.Add(piece.Copy(context) as CurvePiece);
                }

                return(copy);
            }
Esempio n. 5
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);
        }
Esempio n. 6
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);
        }