コード例 #1
0
 void IPlayerEditorConnectionNative.SendMessage(Guid messageId, byte[] data, int playerId)
 {
     if (messageId == Guid.Empty)
     {
         throw new ArgumentException("messageId must not be empty");
     }
     PlayerConnectionInternal.SendMessage(messageId.ToString("N"), data, playerId);
 }
コード例 #2
0
        bool IPlayerEditorConnectionNative.TrySendMessage(Guid messageId, byte[] data, int playerId)
        {
            bool flag = messageId == Guid.Empty;

            if (flag)
            {
                throw new ArgumentException("messageId must not be empty");
            }
            return(PlayerConnectionInternal.TrySendMessage(messageId.ToString("N"), data, playerId));
        }
コード例 #3
0
 void IPlayerEditorConnectionNative.DisconnectAll()
 {
     PlayerConnectionInternal.DisconnectAll();
 }
コード例 #4
0
 bool IPlayerEditorConnectionNative.IsConnected()
 {
     return(PlayerConnectionInternal.IsConnected());
 }
コード例 #5
0
 void IPlayerEditorConnectionNative.Initialize()
 {
     PlayerConnectionInternal.Initialize();
 }
コード例 #6
0
 void IPlayerEditorConnectionNative.UnregisterInternal(Guid messageId)
 {
     PlayerConnectionInternal.UnregisterInternal(messageId.ToString("N"));
 }
コード例 #7
0
 void IPlayerEditorConnectionNative.Poll()
 {
     PlayerConnectionInternal.PollInternal();
 }