internal NativePlayer Player() { if (!C.MultiplayerParticipant_HasPlayer(SelfPtr())) { return(null); } return(new NativePlayer(C.MultiplayerParticipant_Player(SelfPtr()))); }
protected override void CallDispose(HandleRef selfPointer) { C.MultiplayerParticipant_Dispose(selfPointer); }
internal bool Valid() { return(C.MultiplayerParticipant_Valid(SelfPtr())); }
internal string Id() { return(PInvokeUtilities.OutParamsToString( (out_string, size) => C.MultiplayerParticipant_Id(SelfPtr(), out_string, size))); }
internal bool IsConnectedToRoom() { return(C.MultiplayerParticipant_IsConnectedToRoom(SelfPtr())); }
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); }