Photon Bolt Engine API
Networking Middleware
Public Member Functions | Properties | List of all members
Bolt.IPriorityCalculator Interface Reference

Interface which can be implemented on a behaviour attached to an entity which lets you provide custom priority calculations for state and events. More...

Public Member Functions

float CalculateStatePriority (BoltConnection connection, int skipped)
 Called for calculating the priority of this entity for the connection passed in More...
 
float CalculateEventPriority (BoltConnection connection, Event evnt)
 Called for calculating the priority of an event sent to this entity for the connection passed in More...
 

Properties

bool Always [get]
 

Detailed Description

Interface which can be implemented on a behaviour attached to an entity which lets you provide custom priority calculations for state and events.

Member Function Documentation

float Bolt.IPriorityCalculator.CalculateEventPriority ( BoltConnection  connection,
Event  evnt 
)

Called for calculating the priority of an event sent to this entity for the connection passed in

Parameters
connectionThe connection we are calculating priority for
evntThe event we are calculating priority for
Returns
The priority of the event
float Bolt.IPriorityCalculator.CalculateStatePriority ( BoltConnection  connection,
int  skipped 
)

Called for calculating the priority of this entity for the connection passed in

Parameters
connectionThe connection we are calculating priority for
maskThe mask of properties with updated values we want to replicate
skippedHow many packets since we sent an update for this entity
Returns
The priority of the entity

Property Documentation

bool Bolt.IPriorityCalculator.Always
get