Photon Server API

Public Member Functions | Protected Attributes | Properties | List of all members
Photon.Hive.Collections.RoomEventCacheManager Class Reference

Public Member Functions

void SetGameAppCounters (IHiveGameAppCounters counters)
 
int GetSliceSize (int slice)
 
CustomEvent GetCustomEvent (int slice, int number)
 
bool HasSlice (int sliceId)
 
void AddSlice (int sliceId)
 
void AddSliceNX (int sliceId)
 
bool RemoveSlice (int slice)
 
bool RemoveUpToSlice (int slice)
 
void RemoveEventsByActor (int actorNr)
 
void RemoveEventsFromCache (RaiseEventRequest raiseEventRequest)
 
void RemoveEventsForActorsNotInList (IEnumerable< int > currentActorNumbers)
 
void AddEvent (int slice, CustomEvent customEvent)
 
void AddEventToCurrentSlice (CustomEvent customEvent)
 
void SetDeserializedData (Dictionary< int, object[]> dict)
 
Dictionary< int, ArrayList > GetSerializationData (out int evCount)
 

Protected Attributes

SortedList< int, RoomEventCacheeventCache = new SortedList<int, RoomEventCache>()
 
IHiveGameAppCounters gameAppCounters = NullHiveGameAppCounters.Instance
 

Properties

int Count [get]
 
int Slice [get, set]
 
IEnumerable< int > Slices [get]
 
IEnumerable< CustomEventthis[int slice] [get]
 

Member Function Documentation

◆ AddEvent()

void Photon.Hive.Collections.RoomEventCacheManager.AddEvent ( int  slice,
CustomEvent  customEvent 
)
inline

◆ AddEventToCurrentSlice()

void Photon.Hive.Collections.RoomEventCacheManager.AddEventToCurrentSlice ( CustomEvent  customEvent)
inline

◆ AddSlice()

void Photon.Hive.Collections.RoomEventCacheManager.AddSlice ( int  sliceId)
inline

◆ AddSliceNX()

void Photon.Hive.Collections.RoomEventCacheManager.AddSliceNX ( int  sliceId)
inline

◆ GetCustomEvent()

CustomEvent Photon.Hive.Collections.RoomEventCacheManager.GetCustomEvent ( int  slice,
int  number 
)
inline

◆ GetSerializationData()

Dictionary<int, ArrayList> Photon.Hive.Collections.RoomEventCacheManager.GetSerializationData ( out int  evCount)
inline

◆ GetSliceSize()

int Photon.Hive.Collections.RoomEventCacheManager.GetSliceSize ( int  slice)
inline

◆ HasSlice()

bool Photon.Hive.Collections.RoomEventCacheManager.HasSlice ( int  sliceId)
inline

◆ RemoveEventsByActor()

void Photon.Hive.Collections.RoomEventCacheManager.RemoveEventsByActor ( int  actorNr)
inline

◆ RemoveEventsForActorsNotInList()

void Photon.Hive.Collections.RoomEventCacheManager.RemoveEventsForActorsNotInList ( IEnumerable< int >  currentActorNumbers)
inline

◆ RemoveEventsFromCache()

void Photon.Hive.Collections.RoomEventCacheManager.RemoveEventsFromCache ( RaiseEventRequest  raiseEventRequest)
inline

◆ RemoveSlice()

bool Photon.Hive.Collections.RoomEventCacheManager.RemoveSlice ( int  slice)
inline

◆ RemoveUpToSlice()

bool Photon.Hive.Collections.RoomEventCacheManager.RemoveUpToSlice ( int  slice)
inline

◆ SetDeserializedData()

void Photon.Hive.Collections.RoomEventCacheManager.SetDeserializedData ( Dictionary< int, object[]>  dict)
inline

◆ SetGameAppCounters()

void Photon.Hive.Collections.RoomEventCacheManager.SetGameAppCounters ( IHiveGameAppCounters  counters)
inline

Member Data Documentation

◆ eventCache

SortedList<int, RoomEventCache> Photon.Hive.Collections.RoomEventCacheManager.eventCache = new SortedList<int, RoomEventCache>()
protected

◆ gameAppCounters

IHiveGameAppCounters Photon.Hive.Collections.RoomEventCacheManager.gameAppCounters = NullHiveGameAppCounters.Instance
protected

Property Documentation

◆ Count

int Photon.Hive.Collections.RoomEventCacheManager.Count
get

◆ Slice

int Photon.Hive.Collections.RoomEventCacheManager.Slice
getset

◆ Slices

IEnumerable<int> Photon.Hive.Collections.RoomEventCacheManager.Slices
get

◆ this[int slice]

IEnumerable<CustomEvent> Photon.Hive.Collections.RoomEventCacheManager.this[int slice]
get