예제 #1
0
 public void QuitInTurn(string matchId, GK_TurnBasedMatchOutcome outcome, string nextPlayerId, byte[] matchData)
 {
             #if (UNITY_IPHONE && !UNITY_EDITOR && GAME_CENTER_ENABLED) || SA_DEBUG_MODE
     string bytesString = System.Convert.ToBase64String(matchData);
     _ISN_TBM_QuitInTurn(matchId, (int)outcome, nextPlayerId, bytesString);
             #endif
 }
    public GK_TBM_Participant(string playerId, string status, string outcome, string timeoutDate, string lastTurnDate)
    {
        _PlayerId     = playerId;
        _TimeoutDate  = DateTime.Parse(timeoutDate);
        _LastTurnDate = DateTime.Parse(lastTurnDate);

        _Status       = (GK_TurnBasedParticipantStatus)System.Convert.ToInt32(status);
        _MatchOutcome = (GK_TurnBasedMatchOutcome)System.Convert.ToInt32(outcome);
    }
예제 #3
0
	public GK_TBM_Participant(string playerId, string status, string outcome, string timeoutDate, string lastTurnDate) {

		_PlayerId = playerId;
		_TimeoutDate = DateTime.Parse(timeoutDate);
		_LastTurnDate = DateTime.Parse(lastTurnDate);

		_Status = (GK_TurnBasedParticipantStatus) System.Convert.ToInt32(status);
		_MatchOutcome = (GK_TurnBasedMatchOutcome) System.Convert.ToInt32(outcome);
	} 
    public void SetOutcome(GK_TurnBasedMatchOutcome outcome)
    {
        if (Player == null)
        {
            return;
        }

        _MatchOutcome = outcome;

        GameCenter_TBM.Instance.UpdateParticipantOutcome(MatchId, (int)_MatchOutcome, _PlayerId);
    }
예제 #5
0
	public void SetOutcome(GK_TurnBasedMatchOutcome outcome) {

		if(Player == null) {
			return;
		}

		_MatchOutcome = outcome;

		GameCenter_TBM.Instance.UpdateParticipantOutcome (MatchId, (int)_MatchOutcome, _PlayerId);


	}
	public void SetOutcome(GK_TurnBasedMatchOutcome outcome) {

		if(Player == null) {
			return;
		}

		_MatchOutcome = outcome;

		#if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE
		GameCenter_TBM._ISN_TBM_UpdateParticipantOutcome(MatchId, (int) _MatchOutcome, _PlayerId);
		#endif
	}
예제 #7
0
    public void SetOutcome(GK_TurnBasedMatchOutcome outcome)
    {
        if (Player == null)
        {
            return;
        }

        _MatchOutcome = outcome;

                #if (UNITY_IPHONE && !UNITY_EDITOR) || SA_DEBUG_MODE
        GameCenter_TBM._ISN_TBM_UpdateParticipantOutcome(MatchId, (int)_MatchOutcome, _PlayerId);
                #endif
    }
예제 #8
0
 public void QuitOutOfTurn(string matchId, GK_TurnBasedMatchOutcome outcome)
 {
             #if (UNITY_IPHONE && !UNITY_EDITOR && GAME_CENTER_ENABLED) || SA_DEBUG_MODE
     _ISN_TBM_QuitOutOfTurn(matchId, (int)outcome);
             #endif
 }