コード例 #1
0
 internal RealTimeEventListenerHelper SetOnP2PDisconnectedCallback(
     Action <NativeRealTimeRoom, MultiplayerParticipant> callback)
 {
     C.RealTimeEventListenerHelper_SetOnP2PDisconnectedCallback(SelfPtr(),
                                                                InternalOnP2PDisconnectedCallback,
                                                                Callbacks.ToIntPtr(callback));
     return(this);
 }
コード例 #2
0
 internal RealTimeEventListenerHelper SetOnRoomConnectedSetChangedCallback(
     Action <NativeRealTimeRoom> callback)
 {
     C.RealTimeEventListenerHelper_SetOnRoomConnectedSetChangedCallback(SelfPtr(),
                                                                        InternalOnRoomConnectedSetChangedCallback,
                                                                        ToCallbackPointer(callback));
     return(this);
 }
コード例 #3
0
        internal RealTimeEventListenerHelper SetOnDataReceivedCallback(
            Action <NativeRealTimeRoom, MultiplayerParticipant, byte[], bool> callback)
        {
            IntPtr onData = Callbacks.ToIntPtr(callback);

            Logger.d("OnData Callback has addr: " + onData.ToInt64());

            C.RealTimeEventListenerHelper_SetOnDataReceivedCallback(SelfPtr(),
                                                                    InternalOnDataReceived, onData);
            return(this);
        }
コード例 #4
0
 protected override void CallDispose(HandleRef selfPointer)
 {
     C.RealTimeEventListenerHelper_Dispose(selfPointer);
 }
コード例 #5
0
 internal static RealTimeEventListenerHelper Create()
 {
     return(new RealTimeEventListenerHelper(C.RealTimeEventListenerHelper_Construct()));
 }