Photon Load Balancing API Constants
- Source:
- Photon-Javascript_SDK.js, line 3452
Members
-
<static, readonly> CustomAuthenticationType
Options for optional "Custom Authentication" services used with Photon.
-
- Source:
- Photon-Javascript_SDK.js, line 4062
Properties:
Name Type Description Customnumber Default. Use a custom authentification service. Steamnumber Authenticates users by their Steam Account. Set auth values accordingly. Facebooknumber Authenticates users by their Facebook Account. Set auth values accordingly. Nonenumber Disables custom authentification. -
<static, readonly> ErrorCode
Master and Game servers error codes.
-
- Source:
- Photon-Javascript_SDK.js, line 3617
Properties:
Name Type Description Oknumber No Error. OperationNotAllowedInCurrentStatenumber Operation can't be executed yet. InvalidOperationCodenumber The operation you called is not implemented on the server (application) you connect to. Make sure you run the fitting applications. InternalServerErrornumber Something went wrong in the server. Try to reproduce and contact Exit Games. InvalidAuthenticationnumber Authentication failed. Possible cause: AppId is unknown to Photon (in cloud service). GameIdAlreadyExistsnumber GameId (name) already in use (can't create another). Change name. GameFullnumber Game is full. This can when players took over while you joined the game. GameClosednumber Game is closed and can't be joined. Join another game. NoRandomMatchFoundnumber Random matchmaking only succeeds if a room exists thats neither closed nor full. Repeat in a few seconds or create a new room. GameDoesNotExistnumber Join can fail if the room (name) is not existing (anymore). This can happen when players leave while you join. MaxCcuReachednumber Authorization on the Photon Cloud failed becaus the concurrent users (CCU) limit of the app's subscription is reached. InvalidRegionnumber Authorization on the Photon Cloud failed because the app's subscription does not allow to use a particular region's server. -
<static, readonly> EventCaching
Caching options for events.
-
- Source:
- Photon-Javascript_SDK.js, line 3990
Properties:
Name Type Description DoNotCachenumber Default. Do not cache. MergeCachenumber Will merge this event's keys with those already cached. ReplaceCachenumber Replaces the event cache for this eventCode with this event's content. RemoveCachenumber Removes this event (by eventCode) from the cache. AddToRoomCachenumber Adds an event to the room's cache. AddToRoomCacheGlobalnumber Adds this event to the cache for actor 0 (becoming a "globally owned" event in the cache). RemoveFromRoomCachenumber Remove fitting event from the room's cache. RemoveFromRoomCacheForActorsLeftnumber Removes events of players who already left the room (cleaning up). -
<static, readonly> LobbyType
Options of lobby types available. Lobby types might be implemented in certain Photon versions and won't be available on older servers.
-
- Source:
- Photon-Javascript_SDK.js, line 4077
Properties:
Name Type Description Defaultnumber This lobby is used unless another is defined by game or JoinRandom. Room-lists will be sent and JoinRandomRoom can filter by matching properties. SqlLobbynumber This lobby type lists rooms like Default but JoinRandom has a parameter for SQL-like "where" clauses for filtering. This allows bigger, less, or and and combinations. -
<static, readonly> MatchmakingMode
Options for matchmaking rules for joinRandomGame.
-
- Source:
- Photon-Javascript_SDK.js, line 3973
Properties:
Name Type Description FillRoomnumber Default. FillRoom Fills up rooms (oldest first) to get players together as fast as possible. Makes most sense with MaxPlayers > 0 and games that can only start with more players. SerialMatchingnumber Distributes players across available rooms sequentially but takes filter into account. Without filter, rooms get players evenly distributed. RandomMatchingnumber Joins a (fully) random room. Expected properties must match but aside from this, any available room might be selected. -
<static, readonly> OperationCode
Codes for parameters and events used in Photon Load Balancing API.
-
- Source:
- Photon-Javascript_SDK.js, line 3923
Properties:
Name Type Description Authenticatenumber Authenticates this peer and connects to a virtual application. JoinLobbynumber Joins lobby (on Master). LeaveLobbynumber Leaves lobby (on Master). CreateGamenumber Creates a game (or fails if name exists). JoinGamenumber Joins room (by name). JoinRandomGamenumber Joins random room (on Master). Leavenumber Leaves the room. RaiseEventnumber Raises event (in a room, for other actors/players). SetPropertiesnumber Sets Properties (of room or actor/player). GetPropertiesnumber Gets Properties. ChangeGroupsnumber Changes interest groups in room. FindFriendsnumber Requests Master server for actors online status and joined rooms. LobbyStatsnumber Requests Master server for lobbies statistics. -
<static, readonly> ReceiverGroup
Options for choosing room's actors who should receive events.
-
- Source:
- Photon-Javascript_SDK.js, line 4037
Properties:
Name Type Description Othersnumber Default. Anyone else gets my event. Allnumber Everyone in the current room (including this peer) will get this event. MasterClientnumber The "master client" does not have special rights but is the one who is in this room the longest time.