Photon Plugins API Documentation

Static Public Attributes | List of all members
Photon.Hive.Plugin.CacheOperations Class Reference

Related to RaiseEvent operation. Allows you to control room events events cache by setting the required option. Events are cached per event code and player: Event 100 (example!) can be stored once per player. Cached events can be modified, replaced and removed. More...

Static Public Attributes

const byte DoNotCache = 0
 Default value (not sent). Event will not be cached. More...
 
const byte AddToRoomCache = 4
 Adds an event to the room's cache. More...
 
const byte AddToRoomCacheGlobal = 5
 Adds this event to the cache for actor 0 (becoming a "globally owned" event in the cache). More...
 

Detailed Description

Related to RaiseEvent operation. Allows you to control room events events cache by setting the required option. Events are cached per event code and player: Event 100 (example!) can be stored once per player. Cached events can be modified, replaced and removed.

Caching works only combination with ReceiverGroup options Others and All.

Member Data Documentation

◆ AddToRoomCache

const byte Photon.Hive.Plugin.CacheOperations.AddToRoomCache = 4
static

Adds an event to the room's cache.

◆ AddToRoomCacheGlobal

const byte Photon.Hive.Plugin.CacheOperations.AddToRoomCacheGlobal = 5
static

Adds this event to the cache for actor 0 (becoming a "globally owned" event in the cache).

◆ DoNotCache

const byte Photon.Hive.Plugin.CacheOperations.DoNotCache = 0
static

Default value (not sent). Event will not be cached.