Photon Bolt Engine API  1.2.9
Public Member Functions | List of all members
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 Bolt.IProtocolToken:
Bolt.Photon.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 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 Bolt.Photon.PhotonRoomProperties.

◆ Write()

void 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 Bolt.Photon.PhotonRoomProperties.