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; using NetStack.Serialization;
namespace Ragon.Core namespace Ragon.Common
{ {
public interface IPacket public interface IPacket
{ {
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using NetStack.Buffers; using NetStack.Buffers;
namespace Ragon.Core namespace Ragon.Common
{ {
public static class RagonHeader public static class RagonHeader
{ {
+1 -1
View File
@@ -1,4 +1,4 @@
namespace Ragon.Common.Protocol namespace Ragon.Common
{ {
public enum RagonOperation: ushort public enum RagonOperation: ushort
{ {
+2 -2
View File
@@ -8,14 +8,14 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> <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> <DebugSymbols>false</DebugSymbols>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>TRACE;NETSTACK_SPAN</DefineConstants> <DefineConstants>TRACE;NETSTACK_SPAN</DefineConstants>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <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> <DefineConstants>TRACE;NETSTACK_SPAN</DefineConstants>
</PropertyGroup> </PropertyGroup>
-4
View File
@@ -1,12 +1,8 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using DisruptorUnity3d;
using NetStack.Serialization;
using NLog; using NLog;
using Ragon.Common.Protocol;
namespace Ragon.Core namespace Ragon.Core
{ {
+1 -1
View File
@@ -2,7 +2,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using NetStack.Serialization; using NetStack.Serialization;
using Ragon.Common.Protocol; using Ragon.Common;
namespace Ragon.Core namespace Ragon.Core
{ {
+1 -9
View File
@@ -1,12 +1,9 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Runtime.InteropServices;
using System.Text; using System.Text;
using NetStack.Serialization;
using NLog; using NLog;
using NLog.LayoutRenderers; using Ragon.Common;
using Ragon.Common.Protocol;
namespace Ragon.Core namespace Ragon.Core
{ {
@@ -152,13 +149,9 @@ namespace Ragon.Core
var props = _entities[entityId].Properties; var props = _entities[entityId].Properties;
if (props.ContainsKey(propertyId)) if (props.ContainsKey(propertyId))
{
props[propertyId] = payload; props[propertyId] = payload;
}
else else
{
props.Add(propertyId, payload); props.Add(propertyId, payload);
}
// Span<byte> sendData = MemoryMarshal.CreateSpan(ref MemoryMarshal.GetReference(rawData), rawData.Length); // 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); Span<byte> entityStateData = sendData.Slice(10, entity.State.Length);
RagonHeader.WriteUShort((ushort) RagonOperation.CREATE_ENTITY, ref operationData); RagonHeader.WriteUShort((ushort) RagonOperation.CREATE_ENTITY, ref operationData);
;
RagonHeader.WriteInt(entity.EntityId, ref entityData); RagonHeader.WriteInt(entity.EntityId, ref entityData);
RagonHeader.WriteInt((int) entity.OwnerId, ref ownerData); RagonHeader.WriteInt((int) entity.OwnerId, ref ownerData);
+1 -1
View File
@@ -2,7 +2,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using NLog; using NLog;
using Ragon.Common.Protocol; using Ragon.Common;
namespace Ragon.Core namespace Ragon.Core
{ {
+1 -3
View File
@@ -3,9 +3,7 @@ using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Threading; using System.Threading;
using DisruptorUnity3d; using DisruptorUnity3d;
using ENet; using Ragon.Common;
using NetStack.Serialization;
using Ragon.Common.Protocol;
namespace Ragon.Core namespace Ragon.Core
{ {