Photon Quantum 3.0.0

Public Member Functions | List of all members
Quantum.IAssetSerializer Interface Reference

Represents a serializer that handles assets and various configuration objects. More...

Inheritance diagram for Quantum.IAssetSerializer:
Quantum.QuantumUnityJsonSerializer

Public Member Functions

AssetObject[] DeserializeAssets (Stream stream)
 Deserializes an array of asset objects from the specified stream. More...
 
IRuntimeConfig DeserializeConfig (Stream stream)
 Deserializes the runtime configuration from the specified stream. More...
 
IRuntimePlayer DeserializePlayer (Stream stream)
 Deserializes the runtime player from the specified stream. More...
 
IGameResult DeserializeResult (Stream stream)
 Deserializes the game result from the specified stream. More...
 
string PrintObject (object obj)
 Prints the string representation of an object. More...
 
void SerializeAssets (Stream stream, AssetObject[] assets)
 Serializes an array of asset objects to the specified stream. More...
 
void SerializeConfig (Stream stream, IRuntimeConfig config)
 Serializes the runtime configuration to the specified stream. More...
 
void SerializePlayer (Stream stream, IRuntimePlayer player)
 Serializes the runtime player to the specified stream. More...
 
void SerializeResult (Stream stream, IGameResult result)
 Serializes the game result to the specified stream. More...
 

Detailed Description

Represents a serializer that handles assets and various configuration objects.

Member Function Documentation

◆ SerializeConfig()

void Quantum.IAssetSerializer.SerializeConfig ( Stream  stream,
IRuntimeConfig  config 
)

Serializes the runtime configuration to the specified stream.

Parameters
streamThe stream to serialize to.
configThe runtime configuration to serialize.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ SerializePlayer()

void Quantum.IAssetSerializer.SerializePlayer ( Stream  stream,
IRuntimePlayer  player 
)

Serializes the runtime player to the specified stream.

Parameters
streamThe stream to serialize to.
playerThe runtime player to serialize.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ SerializeAssets()

void Quantum.IAssetSerializer.SerializeAssets ( Stream  stream,
AssetObject[]  assets 
)

Serializes an array of asset objects to the specified stream.

Parameters
streamThe stream to serialize to.
assetsThe array of asset objects to serialize.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ SerializeResult()

void Quantum.IAssetSerializer.SerializeResult ( Stream  stream,
IGameResult  result 
)

Serializes the game result to the specified stream.

Parameters
streamThe stream to serialize to.
resultThe game result to serialize.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ DeserializeConfig()

IRuntimeConfig Quantum.IAssetSerializer.DeserializeConfig ( Stream  stream)

Deserializes the runtime configuration from the specified stream.

Parameters
streamThe stream to deserialize from.
Returns
The deserialized runtime configuration.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ DeserializePlayer()

IRuntimePlayer Quantum.IAssetSerializer.DeserializePlayer ( Stream  stream)

Deserializes the runtime player from the specified stream.

Parameters
streamThe stream to deserialize from.
Returns
The deserialized runtime player.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ DeserializeAssets()

AssetObject [] Quantum.IAssetSerializer.DeserializeAssets ( Stream  stream)

Deserializes an array of asset objects from the specified stream.

Parameters
streamThe stream to deserialize from.
Returns
The deserialized array of asset objects.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ DeserializeResult()

IGameResult Quantum.IAssetSerializer.DeserializeResult ( Stream  stream)

Deserializes the game result from the specified stream.

Parameters
streamThe stream to deserialize from.
Returns
The deserialized game result.

Implemented in Quantum.QuantumUnityJsonSerializer.

◆ PrintObject()

string Quantum.IAssetSerializer.PrintObject ( object  obj)

Prints the string representation of an object.

Parameters
objThe object to print.
Returns
The string representation of the object.

Implemented in Quantum.QuantumUnityJsonSerializer.