public AddSphereList ( PositionedObjectList |
||
spheresToAdd | PositionedObjectList |
|
return | void |
public static ShapeCollectionSave FromShapeCollection(ShapeCollection shapeCollection) { ShapeCollectionSave toReturn = new ShapeCollectionSave(); toReturn.AddAxisAlignedRectangleList(shapeCollection.AxisAlignedRectangles); toReturn.AddAxisAlignedCubeList(shapeCollection.AxisAlignedCubes); toReturn.AddCircleList(shapeCollection.Circles); toReturn.AddSphereList(shapeCollection.Spheres); toReturn.AddPolygonList(shapeCollection.Polygons); if (shapeCollection.Lines.Count != 0) { throw new NotImplementedException("Lines in ShapeCollectionSaves are not implemented yet. Complain on the FRB forums"); } if (shapeCollection.Capsule2Ds.Count != 0) { throw new NotImplementedException("Capsule2Ds in ShapeCollectionSaves are not implemented yet. Complain on the FRB forums"); } return(toReturn); }
void SaveShapeListOk(Window callingWindow) { string fileName = ((FileWindow)callingWindow).Results[0]; ShapeCollectionSave shapeSaveList = new ShapeCollectionSave(); shapeSaveList.AddPolygonList(EditorData.Polygons); shapeSaveList.AddAxisAlignedRectangleList(EditorData.AxisAlignedRectangles); shapeSaveList.AddCircleList(EditorData.Circles); shapeSaveList.AddAxisAlignedCubeList(EditorData.AxisAlignedCubes); shapeSaveList.AddSphereList(EditorData.Spheres); shapeSaveList.Save(fileName); #if FRB_MDX GameForm.TitleText = "PolygonEditor - Editing " + fileName; #else FlatRedBallServices.Game.Window.Title = "PolygonEditor Editing - " + fileName; #endif fileName = FileManager.RemoveExtension(fileName); fileName += ".pesix"; PolygonEditorSettings savedInformation = new PolygonEditorSettings(EditorData.LineGrid); savedInformation.BoundsCameraSave = CameraSave.FromCamera(EditorData.BoundsCamera); savedInformation.UsePixelCoordinates = SpriteManager.Camera.Orthogonal; savedInformation.Save(fileName); }
public static ShapeCollectionSave FromShapeCollection(ShapeCollection shapeCollection) { ShapeCollectionSave toReturn = new ShapeCollectionSave(); toReturn.AddAxisAlignedRectangleList(shapeCollection.AxisAlignedRectangles); toReturn.AddAxisAlignedCubeList(shapeCollection.AxisAlignedCubes); toReturn.AddCircleList(shapeCollection.Circles); toReturn.AddSphereList(shapeCollection.Spheres); toReturn.AddPolygonList(shapeCollection.Polygons); if (shapeCollection.Lines.Count != 0) { throw new NotImplementedException("Lines in ShapeCollectionSaves are not implemented yet. Complain on the FRB forums"); } if (shapeCollection.Capsule2Ds.Count != 0) { throw new NotImplementedException("Capsule2Ds in ShapeCollectionSaves are not implemented yet. Complain on the FRB forums"); } return toReturn; }