update framework

This commit is contained in:
szy73711 committed 2022-11-13 02:16:19 +08:00
1 parent 3a1e97df6f
commit e3f449f183
31 files changed
+984 -307

No files matched your search

@@ -0,0 +1,21 @@
using Unity.Collections.LowLevel.Unsafe;
namespace GameCore.LowLevel
{
public static class StructUtility
{
public static int OffsetOf<T, F>()
where T : struct
where F : struct
{
var fields = typeof(T).GetFields();
foreach (var f in fields)
{
if (f.DeclaringType == typeof(F))
return UnsafeUtility.GetFieldOffset(f);
}
return -1;
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: fde8ecf3379244d6885eb6d4ca9d8d31
timeCreated: 1668240297
@@ -0,0 +1,33 @@
{
"name": "nimin.lowlevel",
"rootNamespace": "",
"references": [
"Unity.Collections",
"Unity.Mathematics"
],
"includePlatforms": [
"Android",
"Editor",
"iOS",
"LinuxStandalone64",
"Lumin",
"macOSStandalone",
"PS4",
"Stadia",
"Switch",
"tvOS",
"WSA",
"WebGL",
"WindowsStandalone32",
"WindowsStandalone64",
"XboxOne"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 10ae496f407b04f038c880a464f55c72
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: