From 23a194bc050914ba214ea1005502567f85bd676c Mon Sep 17 00:00:00 2001 From: Tom Weiland Date: Sat, 13 Nov 2021 23:06:28 -0800 Subject: [PATCH] Added file that previously wasn't being copied to the Unity package --- .../RiptideNetworking/RiptideNetworking.csproj | 4 ---- UnityPackage/Runtime/Transports/ICommon.cs | 17 +++++++++++++++++ UnityPackage/Runtime/Transports/ICommon.cs.meta | 11 +++++++++++ 3 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 UnityPackage/Runtime/Transports/ICommon.cs create mode 100644 UnityPackage/Runtime/Transports/ICommon.cs.meta diff --git a/RiptideNetworking/RiptideNetworking/RiptideNetworking.csproj b/RiptideNetworking/RiptideNetworking/RiptideNetworking.csproj index ba535517..9689b619 100644 --- a/RiptideNetworking/RiptideNetworking/RiptideNetworking.csproj +++ b/RiptideNetworking/RiptideNetworking/RiptideNetworking.csproj @@ -32,10 +32,6 @@ - - - - diff --git a/UnityPackage/Runtime/Transports/ICommon.cs b/UnityPackage/Runtime/Transports/ICommon.cs new file mode 100644 index 00000000..f579d1b7 --- /dev/null +++ b/UnityPackage/Runtime/Transports/ICommon.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace RiptideNetworking.Transports +{ + /// Defines methods, properties, and events which every transport's server and client must implement. + public interface ICommon + { + /// Whether or not to output informational log messages. Error-related log messages ignore this setting. + bool ShouldOutputInfoLogs { get; set; } + + /// Initiates handling of currently queued messages. + /// This should generally be called from within a regularly executed update loop (like FixedUpdate in Unity). Messages will continue to be received in between calls, but won't be handled fully until this method is executed. + void Tick(); + } +} diff --git a/UnityPackage/Runtime/Transports/ICommon.cs.meta b/UnityPackage/Runtime/Transports/ICommon.cs.meta new file mode 100644 index 00000000..ce14c508 --- /dev/null +++ b/UnityPackage/Runtime/Transports/ICommon.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f923261aaf9aff4890018b95f391453 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: