Class WorldXmlSerializer
- Namespace
- Alis.Core.Physic.Common
- Assembly
- Alis.dll
The world xml serializer class
internal static class WorldXmlSerializer
Inheritance
Inherited Members
Fields
_writer
The writer
private static XmlWriter _writer
Field Value
Methods
FloatToString(float)
Floats the to string using the specified value
private static string FloatToString(float value)
Parameters
value
float-
The value
Returns
- string
-
The string
Serialize(World, Stream)
Serializes the world
internal static void Serialize(World world, Stream stream)
Parameters
SerializeBody(List<Fixture>, List<Shape>, Body)
Serializes the body using the specified fixtures
private static void SerializeBody(List<Fixture> fixtures, List<Shape> shapes, Body body)
Parameters
SerializeFixture(List<Fixture>, Fixture)
Serializes the fixture using the specified fixtures
private static void SerializeFixture(List<Fixture> fixtures, Fixture fixture)
Parameters
SerializeJoint(List<Body>, Joint)
Serializes the joint using the specified bodies
private static void SerializeJoint(List<Body> bodies, Joint joint)
Parameters
Exceptions
SerializeShape(Shape)
Serializes the shape using the specified shape
private static void SerializeShape(Shape shape)
Parameters
shape
Shape-
The shape
Exceptions
WriteDynamicType(Type, object)
Writes the dynamic type using the specified type
private static void WriteDynamicType(Type type, object val)
Parameters
WriteElement(string, Vector2)
Writes the element using the specified name
private static void WriteElement(string name, Vector2 vec)
Parameters
WriteElement(string, int)
Writes the element using the specified name
private static void WriteElement(string name, int val)
Parameters
WriteElement(string, bool)
Writes the element using the specified name
private static void WriteElement(string name, bool val)
Parameters
WriteElement(string, float)
Writes the element using the specified name
private static void WriteElement(string name, float val)