Class WorldXmlDeserializer
- Namespace
- Alis.Core.Physic.Common
- Assembly
- Alis.dll
The world xml deserializer class
internal static class WorldXmlDeserializerInheritance
Inherited Members
Methods
Deserialize(Stream)
Deserializes the stream
internal static World Deserialize(Stream stream)Parameters
streamStream-
The stream
Returns
- World
-
The world
Deserialize(World, Stream)
Deserializes the world
private static void Deserialize(World world, Stream stream)Parameters
Exceptions
- Exception
- Exception
- Exception
- Exception
- Exception
- Exception
- Exception
- Exception
- Exception
-
Gear joint is unsupported
- Exception
-
GearJoint is not supported.
- Exception
-
Invalid or unsupported joint.
ParseFloat(string)
Parses the float using the specified value
private static float ParseFloat(string value)Parameters
valuestring-
The value
Returns
- float
-
The float
ReadSimpleType(XMLFragmentElement, Type, bool)
Reads the simple type using the specified node
private static object ReadSimpleType(XMLFragmentElement node, Type type, bool outer)Parameters
nodeXMLFragmentElement-
The node
typeType-
The type
outerbool-
The outer
Returns
- object
-
The object
ReadVector(XMLFragmentElement)
Reads the vector using the specified node
private static Vector2 ReadVector(XMLFragmentElement node)Parameters
nodeXMLFragmentElement-
The node
Returns
- Vector2
-
The vector