Example #1
0
        internal NativePlayer Player()
        {
            if (!C.MultiplayerParticipant_HasPlayer(SelfPtr()))
            {
                return(null);
            }

            return(new NativePlayer(C.MultiplayerParticipant_Player(SelfPtr())));
        }
Example #2
0
 protected override void CallDispose(HandleRef selfPointer)
 {
     C.MultiplayerParticipant_Dispose(selfPointer);
 }
Example #3
0
 internal bool Valid()
 {
     return(C.MultiplayerParticipant_Valid(SelfPtr()));
 }
Example #4
0
 internal string Id()
 {
     return(PInvokeUtilities.OutParamsToString(
                (out_string, size) => C.MultiplayerParticipant_Id(SelfPtr(), out_string, size)));
 }
Example #5
0
 internal bool IsConnectedToRoom()
 {
     return(C.MultiplayerParticipant_IsConnectedToRoom(SelfPtr()));
 }
Example #6
0
 internal Types.ParticipantStatus Status()
 {
     return(C.MultiplayerParticipant_Status(SelfPtr()));
 }
 internal bool IsConnectedToRoom()
 {
     // Check the method, and the status to work around a bug found in Feb 2016
     return(C.MultiplayerParticipant_IsConnectedToRoom(SelfPtr()) ||
            Status() == Types.ParticipantStatus.JOINED);
 }