NetworkingPeer.SetMasterClient C# (CSharp) Method

SetMasterClient() public method

Uses a well-known property to set someone new as Master Client in room (requires "Server Side Master Client" feature).
public SetMasterClient ( int nextMasterId ) : bool
nextMasterId int
return bool
    public bool SetMasterClient(int nextMasterId)
    {
        Hashtable newProps = new Hashtable() { { GamePropertyKey.MasterClientId, nextMasterId } };
        Hashtable prevProps = new Hashtable() { { GamePropertyKey.MasterClientId, this.mMasterClientId } };
        return this.OpSetPropertiesOfRoom(newProps, expectedProperties: prevProps, webForward: false);
    }

Same methods

NetworkingPeer::SetMasterClient ( int playerId, bool sync ) : bool

Usage Example

Exemplo n.º 1
0
 public static bool SetMasterClient(PhotonPlayer masterClientPlayer)
 {
     return(networkingPeer.SetMasterClient(masterClientPlayer.ID, true));
 }
All Usage Examples Of NetworkingPeer::SetMasterClient
NetworkingPeer