Skip to content

Commit 002948a

Browse files
committed
Improved class namespaces
1 parent 99cdaec commit 002948a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+193
-220
lines changed

MLAPI-Editor/MLAPIProfiler.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
using MLAPI.Data.NetworkProfiler;
2-
using MLAPI.NetworkingManagerComponents.Binary;
3-
using System.Collections.Generic;
1+
using System.Collections.Generic;
42
using System.IO;
3+
using MLAPI.Collections;
4+
using MLAPI.Profiler;
5+
using MLAPI.Serialization;
56
using UnityEngine;
7+
using BitStream = MLAPI.Serialization.BitStream;
68

79
namespace UnityEditor
810
{
@@ -40,7 +42,7 @@ class ProfilerContainer
4042

4143
public byte[] ToBytes()
4244
{
43-
MLAPI.NetworkingManagerComponents.Binary.BitStream stream = new MLAPI.NetworkingManagerComponents.Binary.BitStream();
45+
BitStream stream = new BitStream();
4446
BitWriter writer = new BitWriter(stream);
4547
writer.WriteUInt16Packed((ushort)ticks.Length);
4648

@@ -55,7 +57,7 @@ public byte[] ToBytes()
5557
public static ProfilerContainer FromBytes(byte[] bytes)
5658
{
5759
ProfilerContainer container = new ProfilerContainer();
58-
MLAPI.NetworkingManagerComponents.Binary.BitStream stream = new MLAPI.NetworkingManagerComponents.Binary.BitStream(bytes);
60+
BitStream stream = new BitStream(bytes);
5961
BitReader reader = new BitReader(stream);
6062
ushort count = reader.ReadUInt16Packed();
6163
container.ticks = new ProfilerTick[count];

MLAPI-Editor/NetworkedAnimatorEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using MLAPI.MonoBehaviours.Prototyping;
2-
using System;
1+
using System;
2+
using MLAPI.Prototyping;
33
using UnityEditor.Animations;
44
using UnityEngine;
55

MLAPI-Editor/NetworkedBehaviourEditor.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
using MLAPI.Data;
2-
using MLAPI.MonoBehaviours.Core;
3-
using System;
1+
using System;
42
using System.Collections.Generic;
53
using System.Reflection;
4+
using MLAPI;
65
using UnityEngine;
76

87
namespace UnityEditor

MLAPI-Editor/NetworkedObjectEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using MLAPI.MonoBehaviours.Core;
1+
using MLAPI;
22
using UnityEngine;
33

44
namespace UnityEditor

MLAPI-Editor/NetworkingManagerEditor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using UnityEngine;
33
using UnityEditorInternal;
44
using MLAPI;
5-
using MLAPI.MonoBehaviours.Core;
65

76
[CustomEditor(typeof(NetworkingManager), true)]
87
[CanEditMultipleObjects]

MLAPI-Editor/TrackedObjectEditor.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using MLAPI.MonoBehaviours.Core;
2-
using UnityEngine;
1+
using MLAPI;
32

43
namespace UnityEditor
54
{

MLAPI.Tests/NetworkingManagerComponents/Binary/ArithmeticTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
2-
namespace MLAPI.Tests.NetworkingManagerComponents.Binary
2+
namespace MLAPI.Tests.Serialization
33
{
4-
using MLAPI.NetworkingManagerComponents.Binary;
4+
using MLAPI.Serialization;
55
using NUnit.Framework;
66

77

MLAPI.Tests/NetworkingManagerComponents/Binary/BitStreamTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
2-
namespace MLAPI.Tests.NetworkingManagerComponents.Binary
2+
namespace MLAPI.Tests.Serialization
33
{
4-
using MLAPI.NetworkingManagerComponents.Binary;
4+
using MLAPI.Serialization;
55
using NUnit.Framework;
66
using System.Text;
77

MLAPI/Data/AttributeMessageMode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using System;
22
using System.IO;
33
using System.Reflection;
4-
using MLAPI.NetworkingManagerComponents.Binary;
4+
using MLAPI.Serialization;
55

6-
namespace MLAPI.Data
6+
namespace MLAPI.Configuration
77
{
88
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
99
public enum AttributeMessageMode

MLAPI/Data/Channel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using MLAPI.Data.Transports;
2-
using System;
1+
using System;
2+
using MLAPI.Transports;
33

4-
namespace MLAPI.Data
4+
namespace MLAPI.Configuration
55
{
66
/// <summary>
77
/// A data object that represents a NetworkTransport channel

0 commit comments

Comments
 (0)