internal InvitationInboxProxy(AndroidTbmpClient owner,
                               Action <bool, TurnBasedMatch> callback)
     : base(JavaConsts.SupportInvitationInboxHelperActivityListener)
 {
     mOwner    = owner;
     mCallback = callback;
 }
 internal ResultProxy(AndroidTbmpClient owner, string method) : base("com.google.android.gms.common.api.ResultCallback")
 {
     this.mOwner = owner;
     this.mSuccessCodes.Add(0);
     this.mSuccessCodes.Add(5);
     this.mSuccessCodes.Add(3);
     this.mMethod = method;
 }
 internal SelectOpponentsProxy(AndroidTbmpClient owner,
                               Action <bool, TurnBasedMatch> callback, int variant) :
     base(JavaConsts.SupportSelectOpponentsHelperActivityListener)
 {
     mOwner    = owner;
     mCallback = callback;
     mVariant  = variant;
 }
 internal ResultProxy(AndroidTbmpClient owner, string method)
     : base(JavaConsts.ResultCallbackClass)
 {
     mOwner = owner;
     mSuccessCodes.Add(JavaConsts.STATUS_OK);
     mSuccessCodes.Add(JavaConsts.STATUS_DEFERRED);
     mSuccessCodes.Add(JavaConsts.STATUS_STALE_DATA);
     mMethod = method;
 }
Exemple #5
0
 public AndroidClient()
 {
     this.mRtmpClient = new AndroidRtmpClient(this);
     this.mTbmpClient = new AndroidTbmpClient(this);
     this.RunOnUiThread(delegate
     {
         Logger.d("Initializing Android Client.");
         Logger.d("Creating GameHelperManager to manage GameHelper.");
         this.mGHManager = new GameHelperManager(this);
         this.mGHManager.AddOnStopDelegate(new GameHelperManager.OnStopDelegate(this.mRtmpClient.OnStop));
     });
 }
 public AndroidClient() {
     mRtmpClient = new AndroidRtmpClient(this);
     mTbmpClient = new AndroidTbmpClient(this);
     RunOnUiThread(() => {
         Logger.d("Initializing Android Client.");
         Logger.d("Creating GameHelperManager to manage GameHelper.");
         mGHManager = new GameHelperManager(this);
         
         // make sure that when game stops, we clean up the real time multiplayer room
         mGHManager.AddOnStopDelegate(mRtmpClient.OnStop);
     });
     // now we wait for the result of the initial auth, which will trigger
     // a call to either OnSignInSucceeded or OnSignInFailed
 }
Exemple #7
0
        public AndroidClient()
        {
            mRtmpClient = new AndroidRtmpClient(this);
            mTbmpClient = new AndroidTbmpClient(this);
            RunOnUiThread(() => {
                Logger.d("Initializing Android Client.");
                Logger.d("Creating GameHelperManager to manage GameHelper.");
                mGHManager = new GameHelperManager(this);

                // make sure that when game stops, we clean up the real time multiplayer room
                mGHManager.AddOnStopDelegate(mRtmpClient.OnStop);
            });
            // now we wait for the result of the initial auth, which will trigger
            // a call to either OnSignInSucceeded or OnSignInFailed
        }
 internal InvitationInboxProxy(AndroidTbmpClient owner, 
         Action<bool, TurnBasedMatch> callback)
             : base(JavaConsts.SupportInvitationInboxHelperActivityListener) {
     mOwner = owner;
     mCallback = callback;
 }
 internal SelectOpponentsProxy(AndroidTbmpClient owner, 
         Action<bool, TurnBasedMatch> callback, int variant) :
         base(JavaConsts.SupportSelectOpponentsHelperActivityListener) {
     mOwner = owner;
     mCallback = callback;
     mVariant = variant;
 }
 internal ResultProxy(AndroidTbmpClient owner, string method) 
             : base(JavaConsts.ResultCallbackClass) {
     mOwner = owner;
     mSuccessCodes.Add(JavaConsts.STATUS_OK);
     mSuccessCodes.Add(JavaConsts.STATUS_DEFERRED);
     mSuccessCodes.Add(JavaConsts.STATUS_STALE_DATA);
     mMethod = method;
 }
 internal InvitationInboxProxy(AndroidTbmpClient owner, Action <bool, TurnBasedMatch> callback) : base("com.google.example.games.pluginsupport.InvitationInboxHelperActivity$Listener")
 {
     this.mOwner    = owner;
     this.mCallback = callback;
 }
 internal SelectOpponentsProxy(AndroidTbmpClient owner, Action <bool, TurnBasedMatch> callback, int variant) : base("com.google.example.games.pluginsupport.SelectOpponentsHelperActivity$Listener")
 {
     this.mOwner    = owner;
     this.mCallback = callback;
     this.mVariant  = variant;
 }