Photon Bolt Engine API 1.3

Public Member Functions | List of all members
Photon.Bolt.IProtocolToken Interface Reference

Describe a Protocol Token that can be used to transfer data between peers when running certain process on Bolt. Read more at here Utility methods to work with IProtocolTokens can be found on ProtocolTokenUtils. More...

Inheritance diagram for Photon.Bolt.IProtocolToken:
Photon.Bolt.PhotonRoomProperties

Public Member Functions

void Read (UdpPacket packet)
 Used to deserialize the Token reading data from the data packet. More...
 
void Write (UdpPacket packet)
 Used to serialize the Token by writing data into the data packet. More...
 

Detailed Description

Describe a Protocol Token that can be used to transfer data between peers when running certain process on Bolt. Read more at here Utility methods to work with IProtocolTokens can be found on ProtocolTokenUtils.

Member Function Documentation

◆ Read()

void Photon.Bolt.IProtocolToken.Read ( UdpPacket  packet)

Used to deserialize the Token reading data from the data packet.

Parameters
packetData packet that contains the Token info

Implemented in Photon.Bolt.PhotonRoomProperties.

◆ Write()

void Photon.Bolt.IProtocolToken.Write ( UdpPacket  packet)

Used to serialize the Token by writing data into the data packet.

Parameters
packetData packet used to store the Token info

Implemented in Photon.Bolt.PhotonRoomProperties.