コード例 #1
0
ファイル: TurnBasedManager.cs プロジェクト: paksas/Mineshaft
        internal static void InternalMultiplayerStatusCallback(MultiplayerStatus status, IntPtr data)
        {
            Logger.d("InternalMultiplayerStatusCallback: " + status);
            var callback = Callbacks.IntPtrToTempCallback <Action <MultiplayerStatus> >(data);

            try {
                callback(status);
            } catch (Exception e) {
                Logger.e("Error encountered executing InternalMultiplayerStatusCallback. " +
                         "Smothering to avoid passing exception into Native: " + e);
            }
        }
コード例 #2
0
        internal static void InternalMultiplayerStatusCallback(MultiplayerStatus status, IntPtr data)
        {
            GooglePlayGames.OurUtils.Logger.d("InternalMultiplayerStatusCallback: " + status);
            var callback = Callbacks.IntPtrToTempCallback<Action<MultiplayerStatus>>(data);

            try
            {
                callback(status);
            }
            catch (Exception e)
            {
                GooglePlayGames.OurUtils.Logger.e("Error encountered executing InternalMultiplayerStatusCallback. " +
                    "Smothering to avoid passing exception into Native: " + e);
            }
        }
コード例 #3
0
        internal static void InternalSendReliableMessageCallback(Status.MultiplayerStatus response,
                                                                 IntPtr data)
        {
            Logger.d("Entering internal callback for InternalSendReliableMessageCallback " + response);

            var callback =
                Callbacks.IntPtrToTempCallback <Action <Status.MultiplayerStatus> >(data);

            if (callback == null)
            {
                return;
            }

            try
            {
                callback(response);
            }
            catch (Exception e)
            {
                Logger.e("Error encountered executing InternalSendReliableMessageCallback. " +
                         "Smothering to avoid passing exception into Native: " + e);
            }
        }