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

            return(new NativePlayer(C.MultiplayerParticipant_Player(SelfPtr())));
        }
예제 #2
0
 protected override void CallDispose(HandleRef selfPointer)
 {
     C.MultiplayerParticipant_Dispose(selfPointer);
 }
예제 #3
0
 internal bool Valid()
 {
     return(C.MultiplayerParticipant_Valid(SelfPtr()));
 }
예제 #4
0
 internal string Id()
 {
     return(PInvokeUtilities.OutParamsToString(
                (out_string, size) => C.MultiplayerParticipant_Id(SelfPtr(), out_string, size)));
 }
예제 #5
0
 internal bool IsConnectedToRoom()
 {
     return(C.MultiplayerParticipant_IsConnectedToRoom(SelfPtr()));
 }
예제 #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);
 }