C# Class GooglePlayGames.IOS.IOSTbmpClient

Inheritance: ITurnBasedMultiplayerClient
Exibir arquivo Open project: unit9/swip3

Public Methods

Method Description
AcceptFromInbox ( TurnBasedMatch>.Action callback ) : void
AcceptInvitation ( string invitationId, TurnBasedMatch>.Action callback ) : void
AcknowledgeFinished ( string matchId, Action callback ) : void
Cancel ( string matchId, Action callback ) : void
CreateQuickMatch ( int minOpponents, int maxOpponents, int variant, TurnBasedMatch>.Action callback ) : void
CreateWithInvitationScreen ( int minOpponents, int maxOpponents, int variant, TurnBasedMatch>.Action callback ) : void
DeclineInvitation ( string invitationId ) : void
Finish ( string matchId, byte data, GooglePlayGames.BasicApi.Multiplayer.MatchOutcome outcome, Action callback ) : void
GetMaxMatchDataSize ( ) : int
Leave ( string matchId, Action callback ) : void
LeaveDuringTurn ( string matchId, string pendingParticipantId, Action callback ) : void
RegisterMatchDelegate ( MatchDelegate deleg ) : void
Rematch ( string matchId, TurnBasedMatch>.Action callback ) : void
TakeTurn ( string matchId, byte data, string pendingParticipantId, Action callback ) : void

Private Methods

Method Description
GPGSTBMPAcceptMatchWithId ( string invitationId, int callbackId, GPGTurnBasedMatchGetCallback callback ) : void
GPGSTBMPAcknowledgeFinish ( string matchId, int callbackId, GPGTurnBasedSuccessCallback callback ) : void
GPGSTBMPCancelMatch ( string matchId, int callbackId, GPGTurnBasedSuccessCallback callback ) : void
GPGSTBMPCreateQuickMatch ( int minOpponents, int maxOpponents, int variant, int callbackId, GPGTurnBasedMatchGetCallback creationCallback ) : void
GPGSTBMPCreateWithInviteScreen ( int minOpponents, int maxOpponents, int variant, int callbackId, GPGTurnBasedMatchGetCallback creationCallback ) : void
GPGSTBMPDeclineMatchWithId ( string invitationId ) : void
GPGSTBMPFinishMatch ( string matchId, byte data, int dataLen, string matchResults, int callbackId, GPGTurnBasedSuccessCallback callback ) : void
GPGSTBMPLeaveDuringTurn ( string matchId, string pendingParticipantId, int callbackId, GPGTurnBasedSuccessCallback callback ) : void
GPGSTBMPLeaveOutofTurn ( string matchId, int callbackId, GPGTurnBasedSuccessCallback callback ) : void
GPGSTBMPRegisterYourTurnNotificationCallback ( GPGTurnBasedMatchYourTurnNotificationCallback callback ) : void
GPGSTBMPRemach ( string matchId, int callbackId, GPGTurnBasedMatchGetCallback callback ) : void
GPGSTBMPShowInvitesAndFindMatch ( int callbackId, GPGTurnBasedMatchGetCallback callbackj ) : void
GPGSTBMPTakeTurnInMatch ( string matchId, byte data, int dataLen, string nextPlayerId, int callbackId, GPGTurnBasedSuccessCallback callbackj ) : void
GetMatchFromJsonString ( string matchAsJson ) : GooglePlayGames.BasicApi.Multiplayer.TurnBasedMatch
TbmpMatchGetCallback ( string matchAsJson, bool isError, int callbackid ) : void
TbmpMatchSuccessCallback ( bool isError, int userData, int callbackid ) : void
TbmpYourTurnCallback ( bool gameOver, string matchAsJson ) : void
convertIntFromiOSToParticipantStatus ( int iOSStatus ) : Participant.ParticipantStatus
convertIntoFromiOSToMatchStatus ( int iOSStatus ) : TurnBasedMatch.MatchStatus
convertIntoFromiOSToMatchTurnStatus ( int iOSStatus ) : TurnBasedMatch.MatchTurnStatus
convertParticipantResultToiOSInt ( GooglePlayGames.BasicApi.Multiplayer.MatchOutcome result ) : int

Method Details

AcceptFromInbox() public method

public AcceptFromInbox ( TurnBasedMatch>.Action callback ) : void
callback TurnBasedMatch>.Action
return void

AcceptInvitation() public method

public AcceptInvitation ( string invitationId, TurnBasedMatch>.Action callback ) : void
invitationId string
callback TurnBasedMatch>.Action
return void

AcknowledgeFinished() public method

public AcknowledgeFinished ( string matchId, Action callback ) : void
matchId string
callback Action
return void

Cancel() public method

public Cancel ( string matchId, Action callback ) : void
matchId string
callback Action
return void

CreateQuickMatch() public method

public CreateQuickMatch ( int minOpponents, int maxOpponents, int variant, TurnBasedMatch>.Action callback ) : void
minOpponents int
maxOpponents int
variant int
callback TurnBasedMatch>.Action
return void

CreateWithInvitationScreen() public method

public CreateWithInvitationScreen ( int minOpponents, int maxOpponents, int variant, TurnBasedMatch>.Action callback ) : void
minOpponents int
maxOpponents int
variant int
callback TurnBasedMatch>.Action
return void

DeclineInvitation() public method

public DeclineInvitation ( string invitationId ) : void
invitationId string
return void

Finish() public method

public Finish ( string matchId, byte data, GooglePlayGames.BasicApi.Multiplayer.MatchOutcome outcome, Action callback ) : void
matchId string
data byte
outcome GooglePlayGames.BasicApi.Multiplayer.MatchOutcome
callback Action
return void

GetMaxMatchDataSize() public method

public GetMaxMatchDataSize ( ) : int
return int

Leave() public method

public Leave ( string matchId, Action callback ) : void
matchId string
callback Action
return void

LeaveDuringTurn() public method

public LeaveDuringTurn ( string matchId, string pendingParticipantId, Action callback ) : void
matchId string
pendingParticipantId string
callback Action
return void

RegisterMatchDelegate() public method

public RegisterMatchDelegate ( MatchDelegate deleg ) : void
deleg MatchDelegate
return void

Rematch() public method

public Rematch ( string matchId, TurnBasedMatch>.Action callback ) : void
matchId string
callback TurnBasedMatch>.Action
return void

TakeTurn() public method

public TakeTurn ( string matchId, byte data, string pendingParticipantId, Action callback ) : void
matchId string
data byte
pendingParticipantId string
callback Action
return void