chore: rename namespace

This commit is contained in:
2022-05-01 21:39:46 +04:00
parent 6fa19a90c7
commit 02160f8b33
9 changed files with 9 additions and 23 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
using NetStack.Serialization;
namespace Ragon.Core
namespace Ragon.Common
{
public interface IPacket
{
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
using System.Runtime.CompilerServices;
using NetStack.Buffers;
namespace Ragon.Core
namespace Ragon.Common
{
public static class RagonHeader
{
+1 -1
View File
@@ -1,4 +1,4 @@
namespace Ragon.Common.Protocol
namespace Ragon.Common
{
public enum RagonOperation: ushort
{
+2 -2
View File
@@ -8,14 +8,14 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>/Users/edmand46/UnityProjects/ragon-client/Assets/RagonSDK/</OutputPath>
<OutputPath>/Users/edmand46/UnityProjects/Ragon-Unity-SDK/Assets/RagonSDK/netstandard2.1/</OutputPath>
<DebugSymbols>false</DebugSymbols>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>TRACE;NETSTACK_SPAN</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>/Users/edmand46/UnityProjects/ragon-client/Assets/RagonSDK/</OutputPath>
<OutputPath>/Users/edmand46/UnityProjects/Ragon-Unity-SDK/Assets/RagonSDK/netstandard2.1/</OutputPath>
<DefineConstants>TRACE;NETSTACK_SPAN</DefineConstants>
</PropertyGroup>
-4
View File
@@ -1,12 +1,8 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using DisruptorUnity3d;
using NetStack.Serialization;
using NLog;
using Ragon.Common.Protocol;
namespace Ragon.Core
{
+1 -1
View File
@@ -2,7 +2,7 @@
using System;
using System.Collections.Generic;
using NetStack.Serialization;
using Ragon.Common.Protocol;
using Ragon.Common;
namespace Ragon.Core
{
+1 -9
View File
@@ -1,12 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using NetStack.Serialization;
using NLog;
using NLog.LayoutRenderers;
using Ragon.Common.Protocol;
using Ragon.Common;
namespace Ragon.Core
{
@@ -152,13 +149,9 @@ namespace Ragon.Core
var props = _entities[entityId].Properties;
if (props.ContainsKey(propertyId))
{
props[propertyId] = payload;
}
else
{
props.Add(propertyId, payload);
}
// Span<byte> sendData = MemoryMarshal.CreateSpan(ref MemoryMarshal.GetReference(rawData), rawData.Length);
@@ -251,7 +244,6 @@ namespace Ragon.Core
Span<byte> entityStateData = sendData.Slice(10, entity.State.Length);
RagonHeader.WriteUShort((ushort) RagonOperation.CREATE_ENTITY, ref operationData);
;
RagonHeader.WriteInt(entity.EntityId, ref entityData);
RagonHeader.WriteInt((int) entity.OwnerId, ref ownerData);
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Text;
using NLog;
using Ragon.Common.Protocol;
using Ragon.Common;
namespace Ragon.Core
{
+1 -3
View File
@@ -3,9 +3,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using DisruptorUnity3d;
using ENet;
using NetStack.Serialization;
using Ragon.Common.Protocol;
using Ragon.Common;
namespace Ragon.Core
{