Photon Server API Documentation
v5.0RC1
An IEventData wrapper that serializes the event upon creation. This has a performance benefit if multiple receivers use the same protocol. More...
Public Member Functions | |
| SerializedEventData (IEventData eventData, IRpcProtocol rpcProtocol, SerializeSetup setup) | |
| Initializes a new instance of the SerializedEventData class. More... | |
| byte[] | Serialize (IRpcProtocol protocol, SerializeSetup setup) |
| Returns the cached serialization data if the protocol is matches, otherwise serializes with the protocol . More... | |
Properties | |
| byte | Code [get] |
| Gets the event code. More... | |
| IEventData | EventData [get] |
| Gets the event data. More... | |
| Dictionary< byte, object > | Parameters [get] |
| Gets the event params. More... | |
| object | this[byte parameterKey] [get, set] |
| Gets or sets the paramter associated with the specified key. More... | |
| IRpcProtocol | Protocol [get] |
| Gets the used serialization protocol. More... | |
| byte[] | Data [get] |
| Gets the serialized data. More... | |
Properties inherited from Photon.SocketServer.IEventData | |
| byte | Code [get] |
| Gets Code. More... | |
| object | this[byte parameterKey] [get, set] |
| Gets or sets the paramter associated with the specified key. More... | |
| Dictionary< byte, object > | Parameters [get] |
| Gets the event parameters that will be sent to the client. More... | |
An IEventData wrapper that serializes the event upon creation. This has a performance benefit if multiple receivers use the same protocol.
|
inline |
Initializes a new instance of the SerializedEventData class.
| eventData | The event data. |
| rpcProtocol | The rpc protocol. |
| setup |
|
inline |
Returns the cached serialization data if the protocol is matches, otherwise serializes with the protocol .
| protocol | The protocol. |
| setup |
Implements Photon.SocketServer.IEventData.
|
get |
Gets the event code.
|
get |
Gets the serialized data.
|
get |
Gets the event data.
|
get |
Gets the event params.
|
get |
Gets the used serialization protocol.
|
getset |
Gets or sets the paramter associated with the specified key.
| parameterKey | The key of the parameter to get or set. |
| System.NullReferenceException | The Parameters property has not been initialized. |