示例#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();
 }