Inheritance: AGS.Engine.AGSComponent, IImageComponent, ISpriteProvider, IRenderer
Ejemplo n.º 1
0
 public void ToItem(AGSSerializationContext context, AGSImageComponent container)
 {
     container.SpriteProvider = SpriteProvider.ToItem(context);
     container.Border         = Border.ToItem(context);
     container.DebugDrawPivot = DebugDrawPivot;
     container.Image          = Image.ToItem(context);
 }
Ejemplo n.º 2
0
        public IImageComponent ToItem(AGSSerializationContext context)
        {
            AGSHasImage       image     = new AGSHasImage();
            AGSImageComponent container = new AGSImageComponent(image, context.Factory.Graphics);

            ToItem(context, container);
            return(container);
        }
Ejemplo n.º 3
0
        public IImageComponent ToItem(AGSSerializationContext context)
        {
            AGSHasImage       image          = new AGSHasImage();
            var               container      = context.Resolver.Container;
            AGSImageComponent imageComponent = new AGSImageComponent(image, context.Factory.Graphics,
                                                                     container.Resolve <IRenderPipeline>(), container.Resolve <IGLTextureRenderer>(),
                                                                     container.Resolve <ITextureCache>(), container.Resolve <ITextureFactory>());

            ToItem(context, imageComponent);
            return(imageComponent);
        }
Ejemplo n.º 4
0
 public void ToItem(AGSSerializationContext context, AGSImageComponent container)
 {
     container.SpriteProvider = SpriteProvider.ToItem(context);
     container.Image          = Image.ToItem(context);
 }