Split the NetworkingManager components to smaller namespaces

This commit is contained in:
Albin Corén 2018-04-01 12:24:54 +02:00
parent 691fd26075
commit 679c56a62f
16 changed files with 29 additions and 28 deletions

View File

@ -73,11 +73,11 @@
<Compile Include="Data\TrackedPointData.cs" /> <Compile Include="Data\TrackedPointData.cs" />
<Compile Include="MonoBehaviours\Prototyping\NetworkedAnimator.cs" /> <Compile Include="MonoBehaviours\Prototyping\NetworkedAnimator.cs" />
<Compile Include="MonoBehaviours\Prototyping\NetworkedNavMeshAgent.cs" /> <Compile Include="MonoBehaviours\Prototyping\NetworkedNavMeshAgent.cs" />
<Compile Include="NetworkingManagerComponents\BinarySerializer.cs" /> <Compile Include="NetworkingManagerComponents\Binary\BinarySerializer.cs" />
<Compile Include="NetworkingManagerComponents\CryptographyHelper.cs" /> <Compile Include="NetworkingManagerComponents\Cryptography\CryptographyHelper.cs" />
<Compile Include="NetworkingManagerComponents\DiffieHellman.cs" /> <Compile Include="NetworkingManagerComponents\Cryptography\DiffieHellman.cs" />
<Compile Include="NetworkingManagerComponents\EllipticCurve.cs" /> <Compile Include="NetworkingManagerComponents\Cryptography\EllipticCurve.cs" />
<Compile Include="NetworkingManagerComponents\LagCompensationManager.cs" /> <Compile Include="NetworkingManagerComponents\Core\LagCompensationManager.cs" />
<Compile Include="MonoBehaviours\Core\NetworkedBehaviour.cs" /> <Compile Include="MonoBehaviours\Core\NetworkedBehaviour.cs" />
<Compile Include="Data\NetworkedClient.cs" /> <Compile Include="Data\NetworkedClient.cs" />
<Compile Include="MonoBehaviours\Core\NetworkedObject.cs" /> <Compile Include="MonoBehaviours\Core\NetworkedObject.cs" />
@ -85,14 +85,14 @@
<Compile Include="MonoBehaviours\Core\NetworkingManager.cs" /> <Compile Include="MonoBehaviours\Core\NetworkingManager.cs" />
<Compile Include="MonoBehaviours\Core\TrackedObject.cs" /> <Compile Include="MonoBehaviours\Core\TrackedObject.cs" />
<Compile Include="MonoBehaviours\Prototyping\NetworkedTransform.cs" /> <Compile Include="MonoBehaviours\Prototyping\NetworkedTransform.cs" />
<Compile Include="NetworkingManagerComponents\MessageManager.cs" /> <Compile Include="NetworkingManagerComponents\Core\MessageManager.cs" />
<Compile Include="NetworkingManagerComponents\NetworkPoolManager.cs" /> <Compile Include="NetworkingManagerComponents\Core\NetworkPoolManager.cs" />
<Compile Include="NetworkingManagerComponents\NetworkSceneManager.cs" /> <Compile Include="NetworkingManagerComponents\Core\NetworkSceneManager.cs" />
<Compile Include="NetworkingManagerComponents\SpawnManager.cs" /> <Compile Include="NetworkingManagerComponents\Core\SpawnManager.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="NetworkingManagerComponents\ClientIdManager.cs" /> <Compile Include="NetworkingManagerComponents\Core\ClientIdManager.cs" />
<Compile Include="Data\ClientIdKey.cs" /> <Compile Include="Data\ClientIdKey.cs" />
<Compile Include="NetworkingManagerComponents\MessageChunker.cs" /> <Compile Include="NetworkingManagerComponents\Binary\MessageChunker.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />

View File

@ -1,12 +1,13 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using MLAPI.NetworkingManagerComponents;
using System.Reflection; using System.Reflection;
using MLAPI.Attributes; using MLAPI.Attributes;
using System.Linq; using System.Linq;
using System.IO; using System.IO;
using MLAPI.Data; using MLAPI.Data;
using MLAPI.NetworkingManagerComponents.Binary;
using MLAPI.NetworkingManagerComponents.Core;
namespace MLAPI.MonoBehaviours.Core namespace MLAPI.MonoBehaviours.Core
{ {

View File

@ -1,4 +1,4 @@
using MLAPI.NetworkingManagerComponents; using MLAPI.NetworkingManagerComponents.Core;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;

View File

@ -1,5 +1,4 @@
using MLAPI.Data; using MLAPI.Data;
using MLAPI.NetworkingManagerComponents;
using System; using System;
using System.Collections; using System.Collections;
using System.Collections.Generic; using System.Collections.Generic;
@ -8,6 +7,8 @@ using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
using System.Linq; using System.Linq;
using System.Security.Cryptography; using System.Security.Cryptography;
using MLAPI.NetworkingManagerComponents.Cryptography;
using MLAPI.NetworkingManagerComponents.Core;
namespace MLAPI.MonoBehaviours.Core namespace MLAPI.MonoBehaviours.Core
{ {

View File

@ -1,5 +1,5 @@
using MLAPI.Data; using MLAPI.Data;
using MLAPI.NetworkingManagerComponents; using MLAPI.NetworkingManagerComponents.Core;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;

View File

@ -6,7 +6,7 @@ using System.Reflection;
using System.Text; using System.Text;
using UnityEngine; using UnityEngine;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Binary
{ {
/// <summary> /// <summary>
/// Helper class for serializing classes to binary /// Helper class for serializing classes to binary

View File

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Binary
{ {
/// <summary> /// <summary>
/// Helper class to chunk messages /// Helper class to chunk messages

View File

@ -1,8 +1,7 @@
using System; using System.Collections.Generic;
using System.Collections.Generic;
using MLAPI.Data; using MLAPI.Data;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Core
{ {
internal static class ClientIdManager internal static class ClientIdManager
{ {

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
using UnityEngine; using UnityEngine;
using UnityEngine.Networking; using UnityEngine.Networking;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Core
{ {
/// <summary> /// <summary>
/// The main class for controlling lag compensation /// The main class for controlling lag compensation

View File

@ -3,7 +3,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine; using UnityEngine;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Core
{ {
internal static class MessageManager internal static class MessageManager
{ {

View File

@ -4,7 +4,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using UnityEngine; using UnityEngine;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Core
{ {
/// <summary> /// <summary>
/// Main class for managing network pools /// Main class for managing network pools

View File

@ -5,7 +5,7 @@ using System.Linq;
using UnityEngine; using UnityEngine;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Core
{ {
/// <summary> /// <summary>
/// Main class for managing network scenes /// Main class for managing network scenes

View File

@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using UnityEngine; using UnityEngine;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Core
{ {
internal static class SpawnManager internal static class SpawnManager
{ {

View File

@ -2,7 +2,7 @@
using System.Security.Cryptography; using System.Security.Cryptography;
using System.IO; using System.IO;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Cryptography
{ {
/// <summary> /// <summary>
/// Helper class for encryption purposes /// Helper class for encryption purposes

View File

@ -3,7 +3,7 @@ using IntXLib;
using System.Text; using System.Text;
using System.Security.Cryptography; using System.Security.Cryptography;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Cryptography
{ {
internal class EllipticDiffieHellman internal class EllipticDiffieHellman
{ {

View File

@ -2,7 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using IntXLib; using IntXLib;
namespace MLAPI.NetworkingManagerComponents namespace MLAPI.NetworkingManagerComponents.Cryptography
{ {
internal class CurvePoint internal class CurvePoint
{ {