1
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
11
Src/Core/ECS/EntitiesService.cs.meta
Normal file
11
Src/Core/ECS/EntitiesService.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 39a2cf28bc8a59c4ab975f015c66d39d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
18
Src/Core/ECS/IEntitiesNetService.cs
Normal file
18
Src/Core/ECS/IEntitiesNetService.cs
Normal 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;
|
||||
}
|
||||
}
|
3
Src/Core/ECS/IEntitiesNetService.cs.meta
Normal file
3
Src/Core/ECS/IEntitiesNetService.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 714df46758a64d36a9ecdea0ac29329a
|
||||
timeCreated: 1718692935
|
Reference in New Issue
Block a user