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

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

Member Data Documentation

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

Property Documentation

int Photon.Hive.Collections.RoomEventCacheManager.Count
get
int Photon.Hive.Collections.RoomEventCacheManager.Slice
getset
IEnumerable<int> Photon.Hive.Collections.RoomEventCacheManager.Slices
get
IEnumerable<CustomEvent> Photon.Hive.Collections.RoomEventCacheManager.this[int slice]
get