Photon Quantum 3.0.0

Static Public Member Functions | Public Attributes | List of all members
Quantum.Editor.SerializableEnterRoomArgs Class Reference

This class wraps the PhotonRealtime EnterRoomArgs class to make problematic members (Hashtable, TypedLobby restrictions) and its hierarchy XML serializable.
More...

Inherits EnterRoomArgs.

Static Public Member Functions

static XmlSerializer CreateSerializer ()
 Create a xml serializer with the necessary overrides. More...
 
static SerializableEnterRoomArgs Deserialize (XmlReader reader)
 Read the class using a xml reader. More...
 
static void Serialize (XmlWriter writer, SerializableEnterRoomArgs obj)
 Serialize the class using a xml serializer. More...
 

Public Attributes

bool HasLobby
 Is true if EnterRoomArgs.Lobby is set. More...
 
string LobbyName
 EnterRoomArgs.Lobby name. More...
 
LobbyType LobbyType
 EnterRoomArgs.Lobby lobby type. More...
 

Detailed Description

This class wraps the PhotonRealtime EnterRoomArgs class to make problematic members (Hashtable, TypedLobby restrictions) and its hierarchy XML serializable.

Member Function Documentation

◆ Serialize()

static void Quantum.Editor.SerializableEnterRoomArgs.Serialize ( XmlWriter  writer,
SerializableEnterRoomArgs  obj 
)
inlinestatic

Serialize the class using a xml serializer.

var enterRoomArgs = new SerializableEnterRoomArgs();
using (var writer = XmlWriter.Create("EnterRoomArgs.xml", new XmlWriterSettings { Indent = true }))
SerializableEnterRoomArgs.Serialize(writer, enterRoomArgs);
Parameters
writerXmlWriter
objThe object to serialize.

◆ Deserialize()

static SerializableEnterRoomArgs Quantum.Editor.SerializableEnterRoomArgs.Deserialize ( XmlReader  reader)
inlinestatic

Read the class using a xml reader.

Parameters
readerXml reader.
Returns
Deserialized class.

◆ CreateSerializer()

static XmlSerializer Quantum.Editor.SerializableEnterRoomArgs.CreateSerializer ( )
inlinestatic

Create a xml serializer with the necessary overrides.

Returns
Xml serializer for SerializableEnterRoomArgs.

Member Data Documentation

◆ HasLobby

bool Quantum.Editor.SerializableEnterRoomArgs.HasLobby

Is true if EnterRoomArgs.Lobby is set.

◆ LobbyName

string Quantum.Editor.SerializableEnterRoomArgs.LobbyName

EnterRoomArgs.Lobby name.

◆ LobbyType

LobbyType Quantum.Editor.SerializableEnterRoomArgs.LobbyType

EnterRoomArgs.Lobby lobby type.