public static FromPolygon ( FlatRedBall polygon ) : |
||
polygon | FlatRedBall | |
리턴 |
public void AddPolygonList(PositionedObjectList <FlatRedBall.Math.Geometry.Polygon> polygonsToAdd) { foreach (FlatRedBall.Math.Geometry.Polygon polygon in polygonsToAdd) { PolygonSave polygonSave = PolygonSave.FromPolygon(polygon); PolygonSaves.Add(polygonSave); } }
public static PolygonSaveList FromRuntime <T>(IList <T> polygonList) where T : FlatRedBall.Math.Geometry.Polygon { PolygonSaveList psl = new PolygonSaveList(); for (int i = 0; i < polygonList.Count; i++) { if (polygonList[i] != null) { psl.PolygonSaves.Add(PolygonSave.FromPolygon(polygonList[i])); } else { psl.PolygonSaves.Add(null); } } return(psl); }