Space Engineers
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
VRage.ObjectBuilders.MyObjectBuilderSerializer Class Reference

Public Types

enum  XmlCompression { XmlCompression.Uncompressed = 0, XmlCompression.Gzip = 1 }
 

Static Public Member Functions

static void RegisterFromAssembly (Assembly assembly)
 
static void LoadSerializers ()
 
static bool SerializeXML (Stream writeTo, MyObjectBuilder_Base objectBuilder, XmlCompression compress=XmlCompression.Uncompressed, Type serializeAsType=null)
 
static bool SerializeXML (string path, bool compress, MyObjectBuilder_Base objectBuilder, Type serializeAsType=null)
 
static bool SerializeXML (string path, bool compress, MyObjectBuilder_Base objectBuilder, out ulong sizeInBytes, Type serializeAsType=null)
 
static bool DeserializeXML< T > (string path, out T objectBuilder)
 
static bool DeserializeXML< T > (string path, out T objectBuilder, out ulong fileSize)
 
static bool DeserializeXML< T > (Stream reader, out T objectBuilder)
 
static bool DeserializeXML (string path, out MyObjectBuilder_Base objectBuilder, Type builderType)
 
static bool DeserializeXML (Stream reader, out MyObjectBuilder_Base objectBuilder, Type builderType)
 
static bool DeserializeGZippedXML< T > (Stream reader, out T objectBuilder)
 
static void SerializeDynamic (BitStream stream, Type baseType, ref Type obj)
 
static MyObjectBuilder_Base CreateNewObject (SerializableDefinitionId id)
 
static MyObjectBuilder_Base CreateNewObject (MyObjectBuilderType type, string subtypeName)
 
static MyObjectBuilder_Base CreateNewObject (MyObjectBuilderType type)
 
static T CreateNewObject< T > (string subtypeName)
 
static T CreateNewObject< T > ()
 
static MyObjectBuilder_Base Clone (MyObjectBuilder_Base toClone)
 
static void UnregisterAssembliesAndSerializers ()
 

Static Public Attributes

static RuntimeTypeModel Serializer
 
static readonly MySerializeInfo Dynamic = new MySerializeInfo(MyObjectFlags.Dynamic, MyPrimitiveFlags.None, 0, SerializeDynamic, null, null)
 

Detailed Description

Definition at line 24 of file MyObjectBuilderSerializer.cs.

Member Enumeration Documentation

Enumerator
Uncompressed 
Gzip 

Definition at line 32 of file MyObjectBuilderSerializer.cs.

Member Function Documentation

static MyObjectBuilder_Base VRage.ObjectBuilders.MyObjectBuilderSerializer.Clone ( MyObjectBuilder_Base  toClone)
inlinestatic

Definition at line 329 of file MyObjectBuilderSerializer.cs.

static MyObjectBuilder_Base VRage.ObjectBuilders.MyObjectBuilderSerializer.CreateNewObject ( SerializableDefinitionId  id)
inlinestatic

Definition at line 298 of file MyObjectBuilderSerializer.cs.

static MyObjectBuilder_Base VRage.ObjectBuilders.MyObjectBuilderSerializer.CreateNewObject ( MyObjectBuilderType  type,
string  subtypeName 
)
inlinestatic

Definition at line 303 of file MyObjectBuilderSerializer.cs.

static MyObjectBuilder_Base VRage.ObjectBuilders.MyObjectBuilderSerializer.CreateNewObject ( MyObjectBuilderType  type)
inlinestatic

Definition at line 310 of file MyObjectBuilderSerializer.cs.

static T VRage.ObjectBuilders.MyObjectBuilderSerializer.CreateNewObject< T > ( string  subtypeName)
inlinestatic
Type Constraints
T :MyObjectBuilder_Base 
T :new() 

Definition at line 315 of file MyObjectBuilderSerializer.cs.

Type Constraints
T :MyObjectBuilder_Base 
T :new() 

Definition at line 322 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.DeserializeGZippedXML< T > ( Stream  reader,
out T  objectBuilder 
)
inlinestatic
Type Constraints
T :MyObjectBuilder_Base 

Definition at line 256 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.DeserializeXML ( string  path,
out MyObjectBuilder_Base  objectBuilder,
Type  builderType 
)
inlinestatic

Definition at line 198 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.DeserializeXML ( Stream  reader,
out MyObjectBuilder_Base  objectBuilder,
Type  builderType 
)
inlinestatic

Definition at line 220 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.DeserializeXML< T > ( string  path,
out T  objectBuilder 
)
inlinestatic
Type Constraints
T :MyObjectBuilder_Base 

Definition at line 159 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.DeserializeXML< T > ( string  path,
out T  objectBuilder,
out ulong  fileSize 
)
inlinestatic
Type Constraints
T :MyObjectBuilder_Base 

Definition at line 165 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.DeserializeXML< T > ( Stream  reader,
out T  objectBuilder 
)
inlinestatic
Type Constraints
T :MyObjectBuilder_Base 

Definition at line 190 of file MyObjectBuilderSerializer.cs.

static void VRage.ObjectBuilders.MyObjectBuilderSerializer.LoadSerializers ( )
inlinestatic

Definition at line 54 of file MyObjectBuilderSerializer.cs.

static void VRage.ObjectBuilders.MyObjectBuilderSerializer.RegisterFromAssembly ( Assembly  assembly)
inlinestatic

Definition at line 48 of file MyObjectBuilderSerializer.cs.

static void VRage.ObjectBuilders.MyObjectBuilderSerializer.SerializeDynamic ( BitStream  stream,
Type  baseType,
ref Type  obj 
)
inlinestatic

Definition at line 280 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.SerializeXML ( Stream  writeTo,
MyObjectBuilder_Base  objectBuilder,
XmlCompression  compress = XmlCompression.Uncompressed,
Type  serializeAsType = null 
)
inlinestatic

Definition at line 86 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.SerializeXML ( string  path,
bool  compress,
MyObjectBuilder_Base  objectBuilder,
Type  serializeAsType = null 
)
inlinestatic

Definition at line 106 of file MyObjectBuilderSerializer.cs.

static bool VRage.ObjectBuilders.MyObjectBuilderSerializer.SerializeXML ( string  path,
bool  compress,
MyObjectBuilder_Base  objectBuilder,
out ulong  sizeInBytes,
Type  serializeAsType = null 
)
inlinestatic

Definition at line 112 of file MyObjectBuilderSerializer.cs.

static void VRage.ObjectBuilders.MyObjectBuilderSerializer.UnregisterAssembliesAndSerializers ( )
inlinestatic

Definition at line 343 of file MyObjectBuilderSerializer.cs.

Member Data Documentation

readonly MySerializeInfo VRage.ObjectBuilders.MyObjectBuilderSerializer.Dynamic = new MySerializeInfo(MyObjectFlags.Dynamic, MyPrimitiveFlags.None, 0, SerializeDynamic, null, null)
static

Definition at line 30 of file MyObjectBuilderSerializer.cs.

RuntimeTypeModel VRage.ObjectBuilders.MyObjectBuilderSerializer.Serializer
static

Definition at line 28 of file MyObjectBuilderSerializer.cs.


The documentation for this class was generated from the following file: