(61d00a474) v0.9.7.1
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
/* Original source Farseer Physics Engine:
|
||||
* Copyright (c) 2014 Ian Qvist, http://farseerphysics.codeplex.com
|
||||
* Microsoft Permissive License (Ms-PL) v1.1
|
||||
*/
|
||||
|
||||
using FarseerPhysics.Common;
|
||||
//using Microsoft.Xna.Framework.Content;
|
||||
|
||||
/*namespace FarseerPhysics.Content
|
||||
{
|
||||
public class PolygonContainerReader : ContentTypeReader<PolygonContainer>
|
||||
{
|
||||
protected override PolygonContainer Read(ContentReader input, PolygonContainer existingInstance)
|
||||
{
|
||||
PolygonContainer paths = existingInstance ?? new PolygonContainer();
|
||||
|
||||
int count = input.ReadInt32();
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
string name = input.ReadString();
|
||||
bool closed = input.ReadBoolean();
|
||||
int vertsCount = input.ReadInt32();
|
||||
Vertices verts = new Vertices();
|
||||
for (int j = 0; j < vertsCount; j++)
|
||||
{
|
||||
verts.Add(input.ReadVector2());
|
||||
}
|
||||
paths[name] = new Polygon(verts, closed);
|
||||
}
|
||||
|
||||
return paths;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
Reference in New Issue
Block a user