This commit is contained in:
CortexCore
2024-06-18 17:57:21 +08:00
parent 82294e44ee
commit d3fd104900
10 changed files with 105 additions and 43 deletions

View File

@@ -5,6 +5,21 @@ namespace BITKit
{
public static class UnityMathematicsSupportExtensions
{
#region float2
public static float2 ReadFloat2(this BinaryReader reader)
{
return new float2()
{
x = reader.ReadSingle(),
y = reader.ReadSingle(),
};
}
public static void WriteFloat2(this BinaryWriter writer, float2 value)
{
writer.Write(value.x);
writer.Write(value.y);
}
#endregion
#region float3
public static float3 ReadFloat3(this BinaryReader reader)
{

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 39a2cf28bc8a59c4ab975f015c66d39d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,18 @@
using System;
namespace BITKit.Entities
{
[Serializable]
public struct EntitiesNetSyncCommand
{
public byte[] Data;
}
[Serializable]
public struct EntitiesNetSyncBatchCommand
{
public int Length;
public int[] Ids;
public ulong[] AddressablePaths;
public EntitiesNetSyncCommand[] Commands;
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 714df46758a64d36a9ecdea0ac29329a
timeCreated: 1718692935