Photon Server API
Public Member Functions | Properties | List of all members
Photon.MmoDemo.Server.Radar Class Reference

Subscribers of the Radar's Channel receive event RadarUpdate for all moving Items in the World. The receive interval is configured with Settings.RadarUpdateInterval. More...

Inheritance diagram for Photon.MmoDemo.Server.Radar:

Public Member Functions

 Radar ()
 
void AddItem (Item item, Vector position)
 Registers an Item with the radar. More...
 
void SendContentToPeer (MmoPeer peer)
 Send event RadarUpdate for all registered Items to the peer. More...
 
void Dispose ()
 Disposes the fiber and clears all subscriptions and dictionaries. More...
 

Properties

MessageChannel< ItemEventMessageChannel [get]
 Gets the channel that publishes event RadarUpdate. More...
 

Detailed Description

Subscribers of the Radar's Channel receive event RadarUpdate for all moving Items in the World. The receive interval is configured with Settings.RadarUpdateInterval.

Constructor & Destructor Documentation

Photon.MmoDemo.Server.Radar.Radar ( )
inline

Member Function Documentation

void Photon.MmoDemo.Server.Radar.AddItem ( Item  item,
Vector  position 
)
inline

Registers an Item with the radar.

The radar will receive position changes from the item and publish them with his Channel. The publish interval can be configured with Settings.RadarUpdateInterval.

void Photon.MmoDemo.Server.Radar.Dispose ( )
inline

Disposes the fiber and clears all subscriptions and dictionaries.

void Photon.MmoDemo.Server.Radar.SendContentToPeer ( MmoPeer  peer)
inline

Send event RadarUpdate for all registered Items to the peer.

Property Documentation

MessageChannel<ItemEventMessage> Photon.MmoDemo.Server.Radar.Channel
get

Gets the channel that publishes event RadarUpdate.