Beispiel #1
0
            public LayerManager(GMSprite sprite)
            {
                if (sprite == null)
                {
                    throw new ArgumentNullException(nameof(sprite));
                }

                layers      = new List <GMSpriteImageLayer>();
                this.sprite = sprite;
            }
Beispiel #2
0
            internal FrameManager(GMSprite sprite)
            {
                if (sprite == null)
                {
                    throw new ArgumentNullException(nameof(sprite));
                }

                frames      = new List <GMSpriteFrame>();
                this.sprite = sprite;
            }
Beispiel #3
0
        internal GMSpriteImageLayer(GMSprite sprite)
        {
            if (sprite == null)
            {
                throw new ArgumentNullException(nameof(sprite));
            }

            Sprite    = sprite;
            Id        = Guid.NewGuid();
            Name      = "";
            Visible   = true;
            IsLocked  = false;
            BlendMode = GMSpriteImageLayerBlendMode.Normal;
            Opacity   = 100f;
        }
Beispiel #4
0
        internal GMSpriteFrame(GMSprite sprite)
        {
            if (sprite == null)
            {
                throw new ArgumentNullException(nameof(sprite));
            }

            Sprite         = sprite;
            CompositeImage = GMSpriteImage.Create(this, null);

            layers = new List <GMSpriteImage>();
            foreach (var layer in sprite.Layers)
            {
                layers.Add(GMSpriteImage.Create(this, layer));
            }
        }