using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("Multiside.shared")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+1c0c4e65910fe40ae396c7a93b3b14a4e2bc66d7")] [assembly: AssemblyProduct("Multiside.shared")] [assembly: AssemblyTitle("Multiside.shared")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace MultiSide.shared { public interface INetworkProvider { bool IsConnected { get; } IReadOnlyList ConnectedActors { get; } IReadOnlyDictionary PlayerObjects { get; } int LocalActorNumber { get; } GameObject? LocalPlayerObject { get; } bool IsInRoom { get; } bool IsMasterClient { get; } int MasterClientActorNumber { get; } event Action OnReceived; event Action OnPlayerJoined; event Action OnPlayerLeft; event Action OnRoomJoined; void Send(string channel, object data, bool reliable = true); void SendTo(int actor, string channel, object data, bool reliable = true); GameObject? GetPlayerObject(int actor); } public static class NetworkRegistry { public static INetworkProvider? Provider { get; private set; } public static event Action? OnProviderRegistered; public static void Register(INetworkProvider provider) { Provider = provider; NetworkRegistry.OnProviderRegistered?.Invoke(provider); } } }