Photon Server API
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Photon.MmoDemo.Server.InterestItems Class Reference

Maintains subscriptions per item (manual). More...

Public Member Functions

 InterestItems (Photon.SocketServer.PeerBase peer)
 
bool SubscribeItem (Item item)
 Subscribes an Item manually. More...
 
bool UnsubscribeItem (Item item)
 Unsubscribe an Item that was manually subscribed with SubscribeItem. More...
 
void Dispose ()
 

Public Attributes

readonly object SyncRoot = new object()
 

Protected Member Functions

void ClearManualSubscriptions ()
 
virtual void Dispose (bool disposing)
 

Detailed Description

Maintains subscriptions per item (manual).

Constructor & Destructor Documentation

Photon.MmoDemo.Server.InterestItems.InterestItems ( Photon.SocketServer.PeerBase  peer)
inline

Member Function Documentation

void Photon.MmoDemo.Server.InterestItems.ClearManualSubscriptions ( )
inlineprotected
virtual void Photon.MmoDemo.Server.InterestItems.Dispose ( bool  disposing)
inlineprotectedvirtual
void Photon.MmoDemo.Server.InterestItems.Dispose ( )
inline
bool Photon.MmoDemo.Server.InterestItems.SubscribeItem ( Item  item)
inline

Subscribes an Item manually.

Unsubscribe with UnsubscribeItem. Thread safety: Requires enqueuing on the item's Item.Fiber and like all instance members a lock on SyncRoot.

bool Photon.MmoDemo.Server.InterestItems.UnsubscribeItem ( Item  item)
inline

Unsubscribe an Item that was manually subscribed with SubscribeItem.

Member Data Documentation

readonly object Photon.MmoDemo.Server.InterestItems.SyncRoot = new object()