multiplayer refactor

This commit is contained in:
2025-07-21 09:04:43 +02:00
parent 1054061d91
commit a0a0f6303d
29 changed files with 2186 additions and 603 deletions

View File

@@ -0,0 +1,19 @@
using System.Text;
using Unity.Collections;
namespace RebootKit.Engine.Extensions {
public static class NativeArrayEx {
public static string ToHexString(this NativeArray<byte> array) {
if (array.IsCreated) {
StringBuilder sb = new StringBuilder(array.Length * 3);
for (int i = 0; i < array.Length; i++) {
sb.AppendFormat("{0:X2} ", array[i]);
}
return sb.ToString();
}
return string.Empty;
}
}
}