提交Unity 联机Pro

This commit is contained in:
PC-20230316NUNE\Administrator
2024-08-17 14:27:18 +08:00
parent f00193b000
commit 894100ae37
7448 changed files with 854473 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#if !BESTHTTP_DISABLE_SIGNALR
using BestHTTP.JSON;
using System.Collections.Generic;
namespace BestHTTP.SignalR.JsonEncoders
{
public sealed class DefaultJsonEncoder : IJsonEncoder
{
public string Encode(object obj)
{
return Json.Encode(obj);
}
public IDictionary<string, object> DecodeMessage(string json)
{
bool ok = false;
IDictionary<string, object> result = Json.Decode(json, ref ok) as IDictionary<string, object>;
return ok ? result : null;
}
}
}
#endif

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 1a4bf647dcdcdbf44ab1edc744192ca0
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,24 @@
#if !BESTHTTP_DISABLE_SIGNALR
using System.Collections.Generic;
namespace BestHTTP.SignalR.JsonEncoders
{
/// <summary>
/// Interface to be able to write custom Json encoders/decoders.
/// </summary>
public interface IJsonEncoder
{
/// <summary>
/// This function must create a json formatted string from the given object. If the encoding fails, it should return null.
/// </summary>
string Encode(object obj);
/// <summary>
/// This function must create a dictionary the Json formatted string parameter. If the decoding fails, it should return null.
/// </summary>
IDictionary<string, object> DecodeMessage(string json);
}
}
#endif

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: b494cd3e9ad9bd243bd68251a27c86b9
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: