Pokemon3D.Entities.System.Components.ModelEntityComponent.AddTextureRegion C# (CSharp) Method

AddTextureRegion() private method

private AddTextureRegion ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle region ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
region Microsoft.Xna.Framework.Rectangle
return void
        private void AddTextureRegion(Texture2D texture, Rectangle? region)
        {
            _regions.Add(new TextureRegion
            {
                Texture = texture,
                Rectangle = region
            });
        }
    }