// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
namespace Microsoft.Xna.Framework.Content.Pipeline.Graphics
{
///
/// Provides methods for maintaining a collection of geometry batches that make up a mesh.
///
public sealed class GeometryContentCollection : ChildCollection
{
internal GeometryContentCollection(MeshContent parent)
: base(parent)
{
}
///
/// Gets the parent of a child object.
///
/// The child of the parent being retrieved.
/// The parent of the child object.
protected override MeshContent GetParent(GeometryContent child)
{
return child.Parent;
}
///
/// Sets the parent of the specified child object.
///
/// The child of the parent being set.
/// The parent of the child object.
protected override void SetParent(GeometryContent child, MeshContent parent)
{
child.Parent = parent;
}
}
}