Used to track references for a room instance. More...
Public Member Functions | |
RoomInstance (RoomCacheBase roomFactory, Room room) | |
Initializes a new instance of the RoomInstance class. More... | |
RoomReference | AddReference (PeerBase ownerPeer) |
Adds a reference to the room instance. More... | |
void | ReleaseReference (RoomReference reference) |
Releases a reference from this instance. More... | |
override string | ToString () |
Public Attributes | |
int | ReferenceCount => this.references.Count |
Gets the number of references for the room instance. More... | |
Properties | |
Room | Room [get] |
Gets the room. More... | |
Used to track references for a room instance.
|
inline |
Initializes a new instance of the RoomInstance class.
roomFactory | The room factory. |
room | The room. |
|
inline |
Adds a reference to the room instance.
ownerPeer | The peer that holds this reference. |
|
inline |
Releases a reference from this instance.
reference | The room reference. |
|
inline |
int Photon.Hive.Caching.RoomCacheBase.RoomInstance.ReferenceCount => this.references.Count |
Gets the number of references for the room instance.
|
get |
Gets the room.