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,8 @@
fileFormatVersion: 2
guid: 3bcdf9c0cafed4d93834eace6041330f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -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:
@@ -0,0 +1,15 @@
{
"name": "com.nimin.lowlevel",
"displayName": "GameCore LowLevel",
"version": "0.1.0",
"unity": "2021.3",
"description": "Low-level helper, contains custom collections",
"dependencies": {
"com.unity.collections": "1.2.4",
"com.unity.burst": "1.8.1"
},
"keywords": [
"LowLevel",
"Collections"
]
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5f9f2b0e6f5f7472e8088bca5daed5ee
PackageManifestImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: