DS-Pokemon-Rom-Editor/DS_Map/LibNDSFormats/Export3DTools/Group.cs
2020-10-06 22:57:27 +02:00

43 lines
839 B
C#

namespace MKDS_Course_Editor.Export3DTools
{
using System;
using System.Collections.Generic;
using System.Reflection;
public class Group
{
private List<Polygon> PolygonList = new List<Polygon>();
public void Add(Polygon g)
{
this.PolygonList.Add(g);
}
public IEnumerator<Polygon> GetEnumerator()
{
return this.PolygonList.GetEnumerator();
}
public Polygon this[int i]
{
get
{
return this.PolygonList[i];
}
set
{
this.PolygonList[i] = value;
}
}
public Polygon[] Polygons
{
get
{
return this.PolygonList.ToArray();
}
}
}
}