mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Remove Impostor.Shared
This commit is contained in:
1 parent
f31d0b0772
commit
61f50c6d41
107 files changed
+277
-230
No files matched your search
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
|
||||
public class EventListenerAttribute : Attribute
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
public enum EventPriority
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Called whenever a new <see cref="IGame"/> is created.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// Called whenever a new <see cref="IGame"/> is destroyed.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
public interface IGameEvent : IEvent
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
public class PlayerJoinedGameEvent : IGameEvent
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
public class PlayerLeftGameEvent : IGameEvent
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
public interface IEvent
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
public interface IEventCancelable : IEvent
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Events
|
||||
namespace Impostor.Api.Events
|
||||
{
|
||||
public interface IEventListener
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Impostor.Server.Events.Managers
|
||||
namespace Impostor.Api.Events.Managers
|
||||
{
|
||||
public interface IEventManager
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace Impostor.Server
|
||||
namespace Impostor.Api
|
||||
{
|
||||
public class ImpostorException : Exception
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Linq;
|
||||
using Impostor.Server.Games.Managers;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Impostor.Api.Games.Managers;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
|
||||
namespace Impostor.Server.Games
|
||||
namespace Impostor.Api.Games
|
||||
{
|
||||
public static class GameManagerExtensions
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Api.Innersloth;
|
||||
|
||||
namespace Impostor.Server.Games
|
||||
namespace Impostor.Api.Games
|
||||
{
|
||||
public readonly struct GameCode : IEquatable<GameCode>
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Games
|
||||
namespace Impostor.Api.Games
|
||||
{
|
||||
public enum GameJoinError
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Games
|
||||
namespace Impostor.Api.Games
|
||||
{
|
||||
public readonly struct GameJoinResult
|
||||
{
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Net;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Games
|
||||
namespace Impostor.Api.Games
|
||||
{
|
||||
public interface IGame
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Impostor.Server.Games.Managers
|
||||
namespace Impostor.Api.Games.Managers
|
||||
{
|
||||
public interface IGameManager
|
||||
{
|
||||
|
||||
@@ -2,16 +2,11 @@
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<RootNamespace>Impostor.Server</RootNamespace>
|
||||
<Nullable>enable</Nullable>
|
||||
<DebugType Condition=" '$(Configuration)' == 'Release' ">None</DebugType>
|
||||
<CodeAnalysisRuleSet>ProjectRules.ruleset</CodeAnalysisRuleSet>
|
||||
<LangVersion>9</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Impostor.Shared\Impostor.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="5.0.0-rc.1.20451.14" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="5.0.0-rc.1.20451.14" />
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Shared.Innersloth.Data
|
||||
namespace Impostor.Api.Innersloth.Data
|
||||
{
|
||||
public enum AlterGameTags : byte
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Shared.Innersloth.Data
|
||||
namespace Impostor.Api.Innersloth.Data
|
||||
{
|
||||
public enum DisconnectReason
|
||||
{
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Impostor.Shared.Innersloth.Data
|
||||
namespace Impostor.Api.Innersloth.Data
|
||||
{
|
||||
[Flags]
|
||||
public enum GameKeywords : uint
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Shared.Innersloth.Data
|
||||
namespace Impostor.Api.Innersloth.Data
|
||||
{
|
||||
public enum GameStates : byte
|
||||
{
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Impostor.Shared.Innersloth.Data
|
||||
namespace Impostor.Api.Innersloth.Data
|
||||
{
|
||||
[Flags]
|
||||
public enum MapFlags
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
using Impostor.Shared.Unity;
|
||||
using Impostor.Api.Unity;
|
||||
|
||||
namespace Impostor.Shared.Innersloth
|
||||
namespace Impostor.Api.Innersloth
|
||||
{
|
||||
public class FloatRange
|
||||
{
|
||||
+1
-1
@@ -4,7 +4,7 @@ using System.Linq;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
namespace Impostor.Shared.Innersloth
|
||||
namespace Impostor.Api.Innersloth
|
||||
{
|
||||
public static class GameCodeParser
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Shared.Innersloth.GameData
|
||||
namespace Impostor.Api.Innersloth.GameData
|
||||
{
|
||||
public static class GameDataTag
|
||||
{
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
|
||||
namespace Impostor.Shared.Innersloth
|
||||
namespace Impostor.Api.Innersloth
|
||||
{
|
||||
public class GameOptionsData
|
||||
{
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Shared.Innersloth
|
||||
namespace Impostor.Api.Innersloth
|
||||
{
|
||||
public class GameVersion
|
||||
{
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace Impostor.Shared.Innersloth
|
||||
namespace Impostor.Api.Innersloth
|
||||
{
|
||||
public class RegionInfo
|
||||
{
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
|
||||
namespace Impostor.Shared.Innersloth
|
||||
namespace Impostor.Api.Innersloth
|
||||
{
|
||||
public class ServerInfo
|
||||
{
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net
|
||||
namespace Impostor.Api.Net
|
||||
{
|
||||
public static class GameMessageWriterExtensions
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Impostor.Server.Net
|
||||
namespace Impostor.Api.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a connected game client.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
|
||||
namespace Impostor.Server.Net
|
||||
namespace Impostor.Api.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents a player in <see cref="IGame"/>.
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System.Net;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net
|
||||
namespace Impostor.Api.Net
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the connection of the client.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Impostor.Server.Net
|
||||
namespace Impostor.Api.Net
|
||||
{
|
||||
[Flags]
|
||||
public enum LimboStates
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Impostor.Server.Net.Manager
|
||||
namespace Impostor.Api.Net.Manager
|
||||
{
|
||||
public interface IClientManager
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
namespace Impostor.Api.Net.Messages
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the message writer for <see cref="IConnection"/>.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
namespace Impostor.Api.Net.Messages
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the message writer for <see cref="IGame"/>.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Net.Messages
|
||||
namespace Impostor.Api.Net.Messages
|
||||
{
|
||||
public interface IMessage
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
namespace Impostor.Api.Net.Messages
|
||||
{
|
||||
public interface IMessageReader
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
namespace Impostor.Api.Net.Messages
|
||||
{
|
||||
/// <summary>
|
||||
/// Base message writer.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Server.Net.Messages
|
||||
namespace Impostor.Api.Net.Messages
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how a message should be sent between connections.
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Events;
|
||||
using Impostor.Api.Events;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace Impostor.Server.Plugins
|
||||
namespace Impostor.Api.Plugins
|
||||
{
|
||||
public interface IPlugin : IEventListener
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace Impostor.Server.Plugins
|
||||
namespace Impostor.Api.Plugins
|
||||
{
|
||||
public class PluginBase : IPlugin
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Impostor.Shared.Unity
|
||||
namespace Impostor.Api.Unity
|
||||
{
|
||||
public static class Mathf
|
||||
{
|
||||
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
|
||||
using Gameloop.Vdf;
|
||||
using Gameloop.Vdf.Linq;
|
||||
using Impostor.Patcher.Shared.Events;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Patcher.Shared.Innersloth;
|
||||
using ErrorEventArgs = Impostor.Patcher.Shared.Events.ErrorEventArgs;
|
||||
|
||||
namespace Impostor.Patcher.Shared
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Impostor.Shared\Impostor.Shared.csproj" />
|
||||
<PackageReference Include="Gameloop.Vdf" Version="0.6.1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace Impostor.Patcher.Shared.Innersloth
|
||||
{
|
||||
public class RegionInfo
|
||||
{
|
||||
public RegionInfo(string name, string ping, IReadOnlyList<ServerInfo> servers)
|
||||
{
|
||||
Name = name;
|
||||
Ping = ping;
|
||||
Servers = servers;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
public string Ping { get; }
|
||||
public IReadOnlyList<ServerInfo> Servers { get; }
|
||||
|
||||
public void Serialize(BinaryWriter writer)
|
||||
{
|
||||
writer.Write(0);
|
||||
writer.Write(Name);
|
||||
writer.Write(Ping);
|
||||
writer.Write(Servers.Count);
|
||||
|
||||
foreach (var server in Servers)
|
||||
{
|
||||
server.Serialize(writer);
|
||||
}
|
||||
}
|
||||
|
||||
public static RegionInfo Deserialize(BinaryReader reader)
|
||||
{
|
||||
var unknown = reader.ReadInt32();
|
||||
var name = reader.ReadString();
|
||||
var ping = reader.ReadString();
|
||||
var servers = new List<ServerInfo>();
|
||||
var serverCount = reader.ReadInt32();
|
||||
|
||||
for (var i = 0; i < serverCount; i++)
|
||||
{
|
||||
servers.Add(ServerInfo.Deserialize(reader));
|
||||
}
|
||||
|
||||
return new RegionInfo(name, ping, servers);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
using System.IO;
|
||||
using System.Net;
|
||||
|
||||
namespace Impostor.Patcher.Shared.Innersloth
|
||||
{
|
||||
public class ServerInfo
|
||||
{
|
||||
public string Name { get; }
|
||||
public string Ip { get; }
|
||||
public ushort Port { get; }
|
||||
|
||||
public ServerInfo(string name, string ip, ushort port)
|
||||
{
|
||||
Name = name;
|
||||
Ip = ip;
|
||||
Port = port;
|
||||
}
|
||||
|
||||
public void Serialize(BinaryWriter writer)
|
||||
{
|
||||
writer.Write(Name);
|
||||
writer.Write(IPAddress.Parse(Ip).GetAddressBytes());
|
||||
writer.Write(Port);
|
||||
writer.Write(0);
|
||||
}
|
||||
|
||||
public static ServerInfo Deserialize(BinaryReader reader)
|
||||
{
|
||||
var name = reader.ReadString();
|
||||
var ip = new IPAddress(reader.ReadBytes(4)).ToString();
|
||||
var port = reader.ReadUInt16();
|
||||
var unknown = reader.ReadInt32();
|
||||
|
||||
return new ServerInfo(name, ip, port);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using Impostor.Server.Plugins;
|
||||
using Impostor.Api.Plugins;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
@page "/"
|
||||
@using Impostor.Server.Events
|
||||
@using Impostor.Server.Events.Managers
|
||||
@using Impostor.Server.Games.Managers
|
||||
@implements IDisposable
|
||||
@implements IEventListener
|
||||
@using Impostor.Api.Events.Managers
|
||||
@using Impostor.Api.Games.Managers
|
||||
@using Impostor.Api.Events
|
||||
@implements Impostor.Api.Events.IEventListener
|
||||
@inject IEventManager EventManager
|
||||
@inject IGameManager GameManager
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Impostor.Server.Events
|
||||
using Impostor.Api.Events;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
{
|
||||
internal readonly struct EventHandler
|
||||
{
|
||||
|
||||
@@ -4,7 +4,8 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Events.Managers;
|
||||
using Impostor.Api.Events;
|
||||
using Impostor.Api.Events.Managers;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Events;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Events;
|
||||
|
||||
namespace Impostor.Server.Events
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.Numerics;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects.Components
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects.Components
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects.Components
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects
|
||||
{
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.GameData.Objects.Components;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.GameData.Objects.Components;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.GameData.Objects
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Impostor.Api\Impostor.Api.csproj" />
|
||||
<ProjectReference Include="..\Impostor.Hazel\Impostor.Hazel.csproj" />
|
||||
<ProjectReference Include="..\Impostor.Shared\Impostor.Shared.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Data;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Net.Hazel;
|
||||
using Impostor.Server.Net.Manager;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Impostor.Server.Net
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Impostor.Server.Net
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Net
|
||||
{
|
||||
internal abstract partial class ClientBase : IClient
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Hazel;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Server.Net.State;
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Impostor.Server.Net.Hazel
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Net.Hazel
|
||||
{
|
||||
internal partial class HazelConnection : IConnection
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using Hazel;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Hazel.Messages;
|
||||
using Impostor.Server.Net.Hazel.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Buffers.Binary;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Hazel.Messages
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Hazel;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Server.Net.State;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Hazel;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Hazel.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using Hazel;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Hazel.Messages
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Manager;
|
||||
|
||||
namespace Impostor.Server.Net.Manager
|
||||
{
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Data;
|
||||
using Impostor.Server.Net.Factories;
|
||||
using Impostor.Server.Net.Hazel;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace Impostor.Server.Net.Manager
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Games.Managers;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Games.Managers;
|
||||
|
||||
namespace Impostor.Server.Net.Manager
|
||||
{
|
||||
|
||||
@@ -4,14 +4,15 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api;
|
||||
using Impostor.Api.Events;
|
||||
using Impostor.Api.Events.Managers;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Server.Data;
|
||||
using Impostor.Server.Events;
|
||||
using Impostor.Server.Events.Managers;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Server.Net.Redirector;
|
||||
using Impostor.Server.Net.State;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Impostor.Server.Net.Messages
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
internal static class Message07JoinedGame
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Impostor.Server.Net.Messages
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
internal static class Message11KickPlayer
|
||||
{
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
namespace Impostor.Server.Net.Messages
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
internal static class Message12WaitForHost
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.Messages
|
||||
{
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Data;
|
||||
using Impostor.Server.Net.Hazel;
|
||||
using Impostor.Server.Net.Manager;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Serilog;
|
||||
using ILogger = Serilog.ILogger;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Net.State
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Net.State
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Net;
|
||||
|
||||
namespace Impostor.Server.Net.State
|
||||
{
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Api.Innersloth.GameData;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.GameData;
|
||||
using Impostor.Server.GameData.Objects;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth.GameData;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Impostor.Server.Net.State
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
|
||||
namespace Impostor.Server.Net.State
|
||||
{
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
using System.Linq;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
|
||||
namespace Impostor.Server.Net.State
|
||||
{
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Events;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Impostor.Api;
|
||||
using Impostor.Api.Events;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
|
||||
namespace Impostor.Server.Net.State
|
||||
{
|
||||
|
||||
@@ -4,15 +4,17 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using Impostor.Server.Events.Managers;
|
||||
using Impostor.Server.Games;
|
||||
using Impostor.Api.Events.Managers;
|
||||
using Impostor.Api.Games;
|
||||
using Impostor.Api.Innersloth;
|
||||
using Impostor.Api.Innersloth.Data;
|
||||
using Impostor.Api.Net;
|
||||
using Impostor.Api.Net.Messages;
|
||||
using Impostor.Server.Hazel;
|
||||
using Impostor.Server.Hazel.Messages;
|
||||
using Impostor.Server.Net.Manager;
|
||||
using Impostor.Server.Net.Messages;
|
||||
using Impostor.Server.Net.Redirector;
|
||||
using Impostor.Shared.Innersloth;
|
||||
using Impostor.Shared.Innersloth.Data;
|
||||
using Serilog;
|
||||
using ILogger = Serilog.ILogger;
|
||||
|
||||
|
||||
Loaded 100 of 107 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user