Photon Server API Documentation v5.0RC1

Public Member Functions | Properties | List of all members
Photon.Hive.Events.CustomEvent Class Reference

Implementation of a custom event. More...

Inheritance diagram for Photon.Hive.Events.CustomEvent:
Photon.Hive.Events.HiveEventBase

Public Member Functions

 CustomEvent (int actorNr, byte eventCode, object data)
 Initializes a new instance of the CustomEvent class. More...
 

Properties

object Data [get, set]
 Gets or sets the event data. More...
 
- Properties inherited from Photon.Hive.Events.HiveEventBase
int ActorNr [get, set]
 Gets or sets the actor number of the sender. More...
 
byte Code [get, set]
 Gets or sets the event code. More...
 

Additional Inherited Members

- Protected Member Functions inherited from Photon.Hive.Events.HiveEventBase
 HiveEventBase (int actorNr)
 Initializes a new instance of the HiveEventBase class. More...
 

Detailed Description

Implementation of a custom event.

Constructor & Destructor Documentation

◆ CustomEvent()

Photon.Hive.Events.CustomEvent.CustomEvent ( int  actorNr,
byte  eventCode,
object  data 
)
inline

Initializes a new instance of the CustomEvent class.

Parameters
actorNrThe actor nr.
eventCodeThe event code.
dataThe event data.

Property Documentation

◆ Data

object Photon.Hive.Events.CustomEvent.Data
getset

Gets or sets the event data.

The event data.