Exemplo n.º 1
0
 /// <inheritdoc/>
 public void ConvertFromData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapBlendComponentData target, ref SiliconStudio.Paradox.Effects.Cubemap.CubemapBlendComponent source)
 {
     source.Enabled       = target.Enabled;
     source.Size          = target.Size;
     source.MaxBlendCount = target.MaxBlendCount;
     source.TextureKey    = target.TextureKey;
 }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public override void ConvertToData(SiliconStudio.Core.Serialization.Converters.ConverterContext converterContext, ref object data, object obj)
        {
            var dataT = (SiliconStudio.Paradox.Graphics.Data.SpriteData)data;
            var objT  = (SiliconStudio.Paradox.Graphics.Sprite)obj;

            ConvertToData(converterContext, ref dataT, objT);
            data = dataT;
        }
Exemplo n.º 3
0
        /// <inheritdoc/>
        public override void ConstructFromData(SiliconStudio.Core.Serialization.Converters.ConverterContext converterContext, object data, ref object obj)
        {
            var dataT = (SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapSourceComponentData)data;
            var objT  = (SiliconStudio.Paradox.Effects.Cubemap.CubemapSourceComponent)obj;

            ConstructFromData(converterContext, dataT, ref objT);
            obj = objT;
        }
Exemplo n.º 4
0
        /// <inheritdoc/>
        public override void ConvertToData(SiliconStudio.Core.Serialization.Converters.ConverterContext converterContext, ref object data, object obj)
        {
            var dataT = (SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapBlendComponentData)data;
            var objT  = (SiliconStudio.Paradox.Effects.Cubemap.CubemapBlendComponent)obj;

            ConvertToData(converterContext, ref dataT, objT);
            data = dataT;
        }
Exemplo n.º 5
0
        /// <inheritdoc/>
        public override void ConvertFromData(SiliconStudio.Core.Serialization.Converters.ConverterContext converterContext, object data, ref object obj)
        {
            var dataT = (SiliconStudio.Paradox.UI.Data.UIImageData)data;
            var objT  = (SiliconStudio.Paradox.UI.UIImage)obj;

            ConvertFromData(converterContext, dataT, ref objT);
            obj = objT;
        }
Exemplo n.º 6
0
        /// <inheritdoc/>
        public override void ConvertToData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, ref SiliconStudio.Paradox.Graphics.Data.IndexBufferBindingData target, SiliconStudio.Paradox.Graphics.IndexBufferBinding source)
        {
            if (target == null)
            {
                target = new SiliconStudio.Paradox.Graphics.Data.IndexBufferBindingData();
            }

            context.ConvertToData(ref target.Buffer, source.Buffer);
            target.Is32Bit = source.Is32Bit;
            target.Offset  = source.Offset;
            target.Count   = source.Count;
        }
Exemplo n.º 7
0
        /// <inheritdoc/>
        public override void ConvertToData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, ref SiliconStudio.Paradox.Graphics.Data.ImageFragmentData target, SiliconStudio.Paradox.Graphics.ImageFragment source)
        {
            if (target == null)
            {
                target = new SiliconStudio.Paradox.Graphics.Data.ImageFragmentData();
            }

            target.Name = source.Name;
            context.ConvertToData(ref target.Texture, source.Texture);
            context.ConvertToData(ref target.TextureAlpha, source.TextureAlpha);
            target.Region        = source.Region;
            target.IsTransparent = source.IsTransparent;
            target.Orientation   = source.Orientation;
        }
Exemplo n.º 8
0
        /// <inheritdoc/>
        public void ConvertFromData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, SiliconStudio.Paradox.Graphics.Data.SpriteData target, ref SiliconStudio.Paradox.Graphics.Sprite source)
        {
            if (source == null)
            {
                source = new SiliconStudio.Paradox.Graphics.Sprite();
            }

            {
                var targetBase = (SiliconStudio.Paradox.Graphics.Data.ImageFragmentData)target;
                var sourceBase = (SiliconStudio.Paradox.Graphics.ImageFragment)source;
                ConvertFromData(context, targetBase, ref sourceBase);
            }

            source.Center = target.Center;
        }
Exemplo n.º 9
0
 /// <inheritdoc/>
 public void ConvertFromData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapSourceComponentData target, ref SiliconStudio.Paradox.Effects.Cubemap.CubemapSourceComponent source)
 {
     source.Enabled         = target.Enabled;
     source.IsDynamic       = target.IsDynamic;
     source.Size            = target.Size;
     source.InfinityCubemap = target.InfinityCubemap;
     source.InfluenceRadius = target.InfluenceRadius;
     source.NearPlane       = target.NearPlane;
     source.FarPlane        = target.FarPlane;
     {
         var temp = source.Texture;
         context.ConvertFromData(target.Texture, ref temp);
         source.Texture = temp;
     }
 }
Exemplo n.º 10
0
        /// <inheritdoc/>
        public void ConvertToData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, ref SiliconStudio.Paradox.UI.Data.UIImageData target, SiliconStudio.Paradox.UI.UIImage source)
        {
            if (target == null)
            {
                target = new SiliconStudio.Paradox.UI.Data.UIImageData();
            }

            {
                var targetBase = (SiliconStudio.Paradox.Graphics.Data.ImageFragmentData)target;
                var sourceBase = (SiliconStudio.Paradox.Graphics.ImageFragment)source;
                ConvertToData(context, ref targetBase, sourceBase);
            }

            target.Borders = source.Borders;
        }
Exemplo n.º 11
0
        /// <inheritdoc/>
        public void ConvertToData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, ref SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapBlendComponentData target, SiliconStudio.Paradox.Effects.Cubemap.CubemapBlendComponent source)
        {
            if (target == null)
            {
                target = new SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapBlendComponentData();
            }

            {
                var targetBase = (SiliconStudio.Paradox.EntityModel.Data.EntityComponentData)target;
                var sourceBase = (SiliconStudio.Paradox.EntityModel.EntityComponent)source;
                ConvertToData(context, ref targetBase, sourceBase);
            }

            target.Enabled       = source.Enabled;
            target.Size          = source.Size;
            target.MaxBlendCount = source.MaxBlendCount;
            target.TextureKey    = source.TextureKey;
        }
Exemplo n.º 12
0
        /// <inheritdoc/>
        public override void ConvertFromData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, SiliconStudio.Paradox.Graphics.Data.ImageFragmentData target, ref SiliconStudio.Paradox.Graphics.ImageFragment source)
        {
            if (source == null)
            {
                source = new SiliconStudio.Paradox.Graphics.ImageFragment();
            }

            source.Name = target.Name;
            {
                var temp = source.Texture;
                context.ConvertFromData(target.Texture, ref temp);
                source.Texture = temp;
            }
            {
                var temp = source.TextureAlpha;
                context.ConvertFromData(target.TextureAlpha, ref temp);
                source.TextureAlpha = temp;
            }
            source.Region        = target.Region;
            source.IsTransparent = target.IsTransparent;
            source.Orientation   = target.Orientation;
        }
Exemplo n.º 13
0
        /// <inheritdoc/>
        public void ConvertToData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, ref SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapSourceComponentData target, SiliconStudio.Paradox.Effects.Cubemap.CubemapSourceComponent source)
        {
            if (target == null)
            {
                target = new SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapSourceComponentData();
            }

            {
                var targetBase = (SiliconStudio.Paradox.EntityModel.Data.EntityComponentData)target;
                var sourceBase = (SiliconStudio.Paradox.EntityModel.EntityComponent)source;
                ConvertToData(context, ref targetBase, sourceBase);
            }

            target.Enabled         = source.Enabled;
            target.IsDynamic       = source.IsDynamic;
            target.Size            = source.Size;
            target.InfinityCubemap = source.InfinityCubemap;
            target.InfluenceRadius = source.InfluenceRadius;
            target.NearPlane       = source.NearPlane;
            target.FarPlane        = source.FarPlane;
            context.ConvertToData(ref target.Texture, source.Texture);
        }
Exemplo n.º 14
0
 /// <inheritdoc/>
 public void ConstructFromData(SiliconStudio.Core.Serialization.Converters.ConverterContext context, SiliconStudio.Paradox.Effects.Cubemap.Data.CubemapSourceComponentData target, ref SiliconStudio.Paradox.Effects.Cubemap.CubemapSourceComponent source)
 {
     source = new SiliconStudio.Paradox.Effects.Cubemap.CubemapSourceComponent();
 }