generated from RageAgainstThePixel/upm-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
com.virtualmaker.rpc 1.0.0-preview.3 (#3)
- Fixes to make WebGL RPC work, add logging --------- Co-authored-by: Stephen Hodgson <[email protected]>
- Loading branch information
1 parent
b9befdc
commit dc5885f
Showing
8 changed files
with
90 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
VirtualMaker.RPC/Packages/com.virtualmaker.rpc/Runtime/UnityRpcLog.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using System; | ||
using UnityEngine; | ||
|
||
namespace VirtualMaker.RPC | ||
{ | ||
internal static class UnityRpcLog | ||
{ | ||
[System.Diagnostics.Conditional("UNITY_RPC_DEBUG")] | ||
public static void Info(string message) | ||
{ | ||
Debug.Log($"[UnityRpc] {message}"); | ||
} | ||
|
||
public static void Error(string message) | ||
{ | ||
Debug.LogError($"[UnityRpc] {message}"); | ||
} | ||
|
||
public static void Exception(Exception exception) | ||
{ | ||
Debug.LogException(exception); | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
VirtualMaker.RPC/Packages/com.virtualmaker.rpc/Runtime/UnityRpcLog.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
40 changes: 20 additions & 20 deletions
40
VirtualMaker.RPC/Packages/com.virtualmaker.rpc/Runtime/UnityRpcTransportNone.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using System.Collections.Concurrent; | ||
using UnityEngine; | ||
|
||
namespace VirtualMaker.RPC | ||
{ | ||
public class UnityRpcTransportNone : IUnityRpcTransport | ||
{ | ||
public ConcurrentQueue<string> ReceiveQueue { get; } = new(); | ||
|
||
public void SendMessage(string message) | ||
{ | ||
} | ||
|
||
private void OnMessageInstance(string message) | ||
{ | ||
} | ||
} | ||
} | ||
// Licensed under the MIT License. See LICENSE in the project root for license information. | ||
|
||
using System.Collections.Concurrent; | ||
using UnityEngine; | ||
|
||
namespace VirtualMaker.RPC | ||
{ | ||
public class UnityRpcTransportNone : IUnityRpcTransport | ||
{ | ||
public ConcurrentQueue<string> ReceiveQueue { get; } = new(); | ||
|
||
public void SendMessage(string message) | ||
{ | ||
} | ||
|
||
private void OnMessageInstance(string message) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters