mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-26 11:24:46 +00:00
提交代码
This commit is contained in:
parent
6a66bc165f
commit
b6461675a8
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 1435edfef9c5969418a51104922af85c
|
guid: 31356a43a7579d34d9b102dbfe1b77e4
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
BIN
JNFrame/Assets/Packages/BepuPhysics.2.3.4/.signature.p7s
vendored
Normal file
BIN
JNFrame/Assets/Packages/BepuPhysics.2.3.4/.signature.p7s
vendored
Normal file
Binary file not shown.
21
JNFrame/Assets/Packages/BepuPhysics.2.3.4/BepuPhysics.nuspec
vendored
Normal file
21
JNFrame/Assets/Packages/BepuPhysics.2.3.4/BepuPhysics.nuspec
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||||
|
<metadata>
|
||||||
|
<id>BepuPhysics</id>
|
||||||
|
<version>2.3.4</version>
|
||||||
|
<authors>Ross Nordby</authors>
|
||||||
|
<license type="expression">Apache-2.0</license>
|
||||||
|
<licenseUrl>https://licenses.nuget.org/Apache-2.0</licenseUrl>
|
||||||
|
<icon>bepuphysicslogo256.png</icon>
|
||||||
|
<projectUrl>https://github.com/bepu/bepuphysics2</projectUrl>
|
||||||
|
<description>Speedy real time physics simulation library.</description>
|
||||||
|
<copyright>© Bepu Entertainment LLC</copyright>
|
||||||
|
<tags>physics 3d rigid body real time simulation</tags>
|
||||||
|
<repository url="https://github.com/bepu/bepuphysics2" />
|
||||||
|
<dependencies>
|
||||||
|
<group targetFramework=".NETStandard2.0">
|
||||||
|
<dependency id="BepuUtilities" version="2.3.4" exclude="Build,Analyzers" />
|
||||||
|
</group>
|
||||||
|
</dependencies>
|
||||||
|
</metadata>
|
||||||
|
</package>
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 5a9ccc9dbf1a91947bdb5db9e8bb9610
|
guid: 267f4a03f7790b745967bfbd68e0095d
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
BIN
JNFrame/Assets/Packages/BepuPhysics.2.3.4/bepuphysicslogo256.png
vendored
Normal file
BIN
JNFrame/Assets/Packages/BepuPhysics.2.3.4/bepuphysicslogo256.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
127
JNFrame/Assets/Packages/BepuPhysics.2.3.4/bepuphysicslogo256.png.meta
vendored
Normal file
127
JNFrame/Assets/Packages/BepuPhysics.2.3.4/bepuphysicslogo256.png.meta
vendored
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: eedc788daf73e8b46ad39b7553f7df0b
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 736ce6b581f4a124b9ff225ee55ca2b8
|
guid: f1d65185644671f4c9a60dbc6733303c
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 4238dd05a5a67de4ea235923baaa8b9a
|
guid: 5ce6ef99def540a43a92f3be35cca4cd
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
BIN
JNFrame/Assets/Packages/BepuPhysics.2.3.4/lib/netstandard2.0/BepuPhysics.dll
vendored
Normal file
BIN
JNFrame/Assets/Packages/BepuPhysics.2.3.4/lib/netstandard2.0/BepuPhysics.dll
vendored
Normal file
Binary file not shown.
23
JNFrame/Assets/Packages/BepuPhysics.2.3.4/lib/netstandard2.0/BepuPhysics.dll.meta
vendored
Normal file
23
JNFrame/Assets/Packages/BepuPhysics.2.3.4/lib/netstandard2.0/BepuPhysics.dll.meta
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b405948c0480ad843b6aa640c7ffd28a
|
||||||
|
labels:
|
||||||
|
- NuGetForUnity
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
6303
JNFrame/Assets/Packages/BepuPhysics.2.3.4/lib/netstandard2.0/BepuPhysics.xml
vendored
Normal file
6303
JNFrame/Assets/Packages/BepuPhysics.2.3.4/lib/netstandard2.0/BepuPhysics.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 48d11621921abb349a5ac31a6e0b8a95
|
guid: ab482ab5027a2d141a6b8234db8e5b1c
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 636828e4e4b4ac1468433f7433083e68
|
guid: 0c1dc29160d088b449c008c586f26c83
|
||||||
folderAsset: yes
|
folderAsset: yes
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
BIN
JNFrame/Assets/Packages/BepuUtilities.2.3.4/.signature.p7s
vendored
Normal file
BIN
JNFrame/Assets/Packages/BepuUtilities.2.3.4/.signature.p7s
vendored
Normal file
Binary file not shown.
22
JNFrame/Assets/Packages/BepuUtilities.2.3.4/BepuUtilities.nuspec
vendored
Normal file
22
JNFrame/Assets/Packages/BepuUtilities.2.3.4/BepuUtilities.nuspec
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||||
|
<metadata>
|
||||||
|
<id>BepuUtilities</id>
|
||||||
|
<version>2.3.4</version>
|
||||||
|
<authors>Ross Nordby</authors>
|
||||||
|
<license type="expression">Apache-2.0</license>
|
||||||
|
<licenseUrl>https://licenses.nuget.org/Apache-2.0</licenseUrl>
|
||||||
|
<icon>bepuphysicslogo256.png</icon>
|
||||||
|
<projectUrl>https://github.com/bepu/bepuphysics2</projectUrl>
|
||||||
|
<description>Supporting utilities library for BEPUphysics v2.</description>
|
||||||
|
<copyright>© Bepu Entertainment LLC</copyright>
|
||||||
|
<repository url="https://github.com/bepu/bepuphysics2" />
|
||||||
|
<dependencies>
|
||||||
|
<group targetFramework=".NETStandard2.0">
|
||||||
|
<dependency id="System.Memory" version="4.5.4" exclude="Build,Analyzers" />
|
||||||
|
<dependency id="System.Numerics.Vectors" version="4.5.0" exclude="Build,Analyzers" />
|
||||||
|
<dependency id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" exclude="Build,Analyzers" />
|
||||||
|
</group>
|
||||||
|
</dependencies>
|
||||||
|
</metadata>
|
||||||
|
</package>
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: efe1f62659bb4544a8658824baa5261f
|
guid: 57ad12de7bd0a424b90fa6e65daca702
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
BIN
JNFrame/Assets/Packages/BepuUtilities.2.3.4/bepuphysicslogo256.png
vendored
Normal file
BIN
JNFrame/Assets/Packages/BepuUtilities.2.3.4/bepuphysicslogo256.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 41 KiB |
127
JNFrame/Assets/Packages/BepuUtilities.2.3.4/bepuphysicslogo256.png.meta
vendored
Normal file
127
JNFrame/Assets/Packages/BepuUtilities.2.3.4/bepuphysicslogo256.png.meta
vendored
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 994c9e52f887aba4d8bd51018a243ad4
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib.meta
vendored
Normal file
8
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 13939b529f639c64c9f8ed642ae8225d
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0.meta
vendored
Normal file
8
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b3758ce5f94c47c40a26d23db7225cf7
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.dll
vendored
Normal file
BIN
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.dll
vendored
Normal file
Binary file not shown.
23
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.dll.meta
vendored
Normal file
23
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.dll.meta
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d18075e399b7444499be851fe111d283
|
||||||
|
labels:
|
||||||
|
- NuGetForUnity
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 0
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
4105
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.xml
vendored
Normal file
4105
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.xml.meta
vendored
Normal file
7
JNFrame/Assets/Packages/BepuUtilities.2.3.4/lib/netstandard2.0/BepuUtilities.xml.meta
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d4e1291355a40db41ab3daa142d4681b
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,36 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
|
||||||
<metadata minClientVersion="2.12">
|
|
||||||
<id>System.Runtime.CompilerServices.Unsafe</id>
|
|
||||||
<version>4.5.2</version>
|
|
||||||
<title>System.Runtime.CompilerServices.Unsafe</title>
|
|
||||||
<authors>Microsoft</authors>
|
|
||||||
<owners>microsoft,dotnetframework</owners>
|
|
||||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
|
||||||
<licenseUrl>https://github.com/dotnet/corefx/blob/master/LICENSE.TXT</licenseUrl>
|
|
||||||
<projectUrl>https://dot.net/</projectUrl>
|
|
||||||
<iconUrl>http://go.microsoft.com/fwlink/?LinkID=288859</iconUrl>
|
|
||||||
<description>Provides the System.Runtime.CompilerServices.Unsafe class, which provides generic, low-level functionality for manipulating pointers.
|
|
||||||
|
|
||||||
Commonly Used Types:
|
|
||||||
System.Runtime.CompilerServices.Unsafe
|
|
||||||
|
|
||||||
02b11eeee1fbc5f3ef43a1452fe07efd25fa1715
|
|
||||||
When using NuGet 3.x this package requires at least version 3.4.</description>
|
|
||||||
<releaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</releaseNotes>
|
|
||||||
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
|
||||||
<serviceable>true</serviceable>
|
|
||||||
<dependencies>
|
|
||||||
<group targetFramework=".NETFramework4.5" />
|
|
||||||
<group targetFramework=".NETCoreApp2.0" />
|
|
||||||
<group targetFramework=".NETStandard1.0">
|
|
||||||
<dependency id="System.Runtime" version="4.3.0" />
|
|
||||||
</group>
|
|
||||||
<group targetFramework=".NETStandard2.0" />
|
|
||||||
<group targetFramework=".NETPortable4.5-Profile259" />
|
|
||||||
<group targetFramework="Windows8.0" />
|
|
||||||
<group targetFramework="WindowsPhone8.0" />
|
|
||||||
<group targetFramework="WindowsPhoneApp8.1" />
|
|
||||||
</dependencies>
|
|
||||||
</metadata>
|
|
||||||
</package>
|
|
@ -1,309 +0,0 @@
|
|||||||
.NET Core uses third-party libraries or other resources that may be
|
|
||||||
distributed under licenses different than the .NET Core software.
|
|
||||||
|
|
||||||
In the event that we accidentally failed to list a required notice, please
|
|
||||||
bring it to our attention. Post an issue or email us:
|
|
||||||
|
|
||||||
dotnet@microsoft.com
|
|
||||||
|
|
||||||
The attached notices are provided for information only.
|
|
||||||
|
|
||||||
License notice for Slicing-by-8
|
|
||||||
-------------------------------
|
|
||||||
|
|
||||||
http://sourceforge.net/projects/slicing-by-8/
|
|
||||||
|
|
||||||
Copyright (c) 2004-2006 Intel Corporation - All Rights Reserved
|
|
||||||
|
|
||||||
|
|
||||||
This software program is licensed subject to the BSD License, available at
|
|
||||||
http://www.opensource.org/licenses/bsd-license.html.
|
|
||||||
|
|
||||||
|
|
||||||
License notice for Unicode data
|
|
||||||
-------------------------------
|
|
||||||
|
|
||||||
http://www.unicode.org/copyright.html#License
|
|
||||||
|
|
||||||
Copyright © 1991-2017 Unicode, Inc. All rights reserved.
|
|
||||||
Distributed under the Terms of Use in http://www.unicode.org/copyright.html.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
|
||||||
a copy of the Unicode data files and any associated documentation
|
|
||||||
(the "Data Files") or Unicode software and any associated documentation
|
|
||||||
(the "Software") to deal in the Data Files or Software
|
|
||||||
without restriction, including without limitation the rights to use,
|
|
||||||
copy, modify, merge, publish, distribute, and/or sell copies of
|
|
||||||
the Data Files or Software, and to permit persons to whom the Data Files
|
|
||||||
or Software are furnished to do so, provided that either
|
|
||||||
(a) this copyright and permission notice appear with all copies
|
|
||||||
of the Data Files or Software, or
|
|
||||||
(b) this copyright and permission notice appear in associated
|
|
||||||
Documentation.
|
|
||||||
|
|
||||||
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
|
|
||||||
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
|
||||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT OF THIRD PARTY RIGHTS.
|
|
||||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
|
|
||||||
NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
|
|
||||||
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
||||||
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
||||||
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
||||||
PERFORMANCE OF THE DATA FILES OR SOFTWARE.
|
|
||||||
|
|
||||||
Except as contained in this notice, the name of a copyright holder
|
|
||||||
shall not be used in advertising or otherwise to promote the sale,
|
|
||||||
use or other dealings in these Data Files or Software without prior
|
|
||||||
written authorization of the copyright holder.
|
|
||||||
|
|
||||||
License notice for Zlib
|
|
||||||
-----------------------
|
|
||||||
|
|
||||||
https://github.com/madler/zlib
|
|
||||||
http://zlib.net/zlib_license.html
|
|
||||||
|
|
||||||
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
|
||||||
version 1.2.11, January 15th, 2017
|
|
||||||
|
|
||||||
Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
|
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied
|
|
||||||
warranty. In no event will the authors be held liable for any damages
|
|
||||||
arising from the use of this software.
|
|
||||||
|
|
||||||
Permission is granted to anyone to use this software for any purpose,
|
|
||||||
including commercial applications, and to alter it and redistribute it
|
|
||||||
freely, subject to the following restrictions:
|
|
||||||
|
|
||||||
1. The origin of this software must not be misrepresented; you must not
|
|
||||||
claim that you wrote the original software. If you use this software
|
|
||||||
in a product, an acknowledgment in the product documentation would be
|
|
||||||
appreciated but is not required.
|
|
||||||
2. Altered source versions must be plainly marked as such, and must not be
|
|
||||||
misrepresented as being the original software.
|
|
||||||
3. This notice may not be removed or altered from any source distribution.
|
|
||||||
|
|
||||||
Jean-loup Gailly Mark Adler
|
|
||||||
jloup@gzip.org madler@alumni.caltech.edu
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
License notice for Mono
|
|
||||||
-------------------------------
|
|
||||||
|
|
||||||
http://www.mono-project.com/docs/about-mono/
|
|
||||||
|
|
||||||
Copyright (c) .NET Foundation Contributors
|
|
||||||
|
|
||||||
MIT License
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the Software), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
||||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
||||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
||||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
||||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
License notice for International Organization for Standardization
|
|
||||||
-----------------------------------------------------------------
|
|
||||||
|
|
||||||
Portions (C) International Organization for Standardization 1986:
|
|
||||||
Permission to copy in any form is granted for use with
|
|
||||||
conforming SGML systems and applications as defined in
|
|
||||||
ISO 8879, provided this notice is included in all copies.
|
|
||||||
|
|
||||||
License notice for Intel
|
|
||||||
------------------------
|
|
||||||
|
|
||||||
"Copyright (c) 2004-2006 Intel Corporation - All Rights Reserved
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer in the documentation
|
|
||||||
and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
License notice for Xamarin and Novell
|
|
||||||
-------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2015 Xamarin, Inc (http://www.xamarin.com)
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
Copyright (c) 2011 Novell, Inc (http://www.novell.com)
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
Third party notice for W3C
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
"W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE
|
|
||||||
Status: This license takes effect 13 May, 2015.
|
|
||||||
This work is being provided by the copyright holders under the following license.
|
|
||||||
License
|
|
||||||
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
|
|
||||||
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:
|
|
||||||
The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
|
|
||||||
Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
|
|
||||||
Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."
|
|
||||||
Disclaimers
|
|
||||||
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
|
||||||
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
|
|
||||||
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders."
|
|
||||||
|
|
||||||
License notice for Bit Twiddling Hacks
|
|
||||||
--------------------------------------
|
|
||||||
|
|
||||||
Bit Twiddling Hacks
|
|
||||||
|
|
||||||
By Sean Eron Anderson
|
|
||||||
seander@cs.stanford.edu
|
|
||||||
|
|
||||||
Individually, the code snippets here are in the public domain (unless otherwise
|
|
||||||
noted) — feel free to use them however you please. The aggregate collection and
|
|
||||||
descriptions are © 1997-2005 Sean Eron Anderson. The code and descriptions are
|
|
||||||
distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY and
|
|
||||||
without even the implied warranty of merchantability or fitness for a particular
|
|
||||||
purpose.
|
|
||||||
|
|
||||||
License notice for Brotli
|
|
||||||
--------------------------------------
|
|
||||||
|
|
||||||
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
compress_fragment.c:
|
|
||||||
Copyright (c) 2011, Google Inc.
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the following disclaimer
|
|
||||||
in the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
* Neither the name of Google Inc. nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
decode_fuzzer.c:
|
|
||||||
Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are
|
|
||||||
met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer.
|
|
||||||
* Redistributions in binary form must reproduce the above
|
|
||||||
copyright notice, this list of conditions and the following disclaimer
|
|
||||||
in the documentation and/or other materials provided with the
|
|
||||||
distribution.
|
|
||||||
* Neither the name of Google Inc. nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
||||||
""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
||||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
||||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
||||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
||||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
||||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
||||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
|
||||||
|
|
Binary file not shown.
@ -1,200 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><doc>
|
|
||||||
<assembly>
|
|
||||||
<name>System.Runtime.CompilerServices.Unsafe</name>
|
|
||||||
</assembly>
|
|
||||||
<members>
|
|
||||||
<member name="T:System.Runtime.CompilerServices.Unsafe">
|
|
||||||
<summary>Contains generic, low-level functionality for manipulating pointers.</summary>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.Int32)">
|
|
||||||
<summary>Adds an element offset to the given reference.</summary>
|
|
||||||
<param name="source">The reference to add the offset to.</param>
|
|
||||||
<param name="elementOffset">The offset to add.</param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>A new reference that reflects the addition of offset to pointer.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.IntPtr)">
|
|
||||||
<summary>Adds an element offset to the given reference.</summary>
|
|
||||||
<param name="source">The reference to add the offset to.</param>
|
|
||||||
<param name="elementOffset">The offset to add.</param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>A new reference that reflects the addition of offset to pointer.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.IntPtr)">
|
|
||||||
<summary>Adds a byte offset to the given reference.</summary>
|
|
||||||
<param name="source">The reference to add the offset to.</param>
|
|
||||||
<param name="byteOffset">The offset to add.</param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>A new reference that reflects the addition of byte offset to pointer.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AreSame``1(``0@,``0@)">
|
|
||||||
<summary>Determines whether the specified references point to the same location.</summary>
|
|
||||||
<param name="left">The first reference to compare.</param>
|
|
||||||
<param name="right">The second reference to compare.</param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> point to the same location; otherwise, false.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.As``1(System.Object)">
|
|
||||||
<summary>Casts the given object to the specified type.</summary>
|
|
||||||
<param name="o">The object to cast.</param>
|
|
||||||
<typeparam name="T">The type which the object will be cast to.</typeparam>
|
|
||||||
<returns>The original object, casted to the given type.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.As``2(``0@)">
|
|
||||||
<summary>Reinterprets the given reference as a reference to a value of type <typeparamref name="TTo">TTo</typeparamref>.</summary>
|
|
||||||
<param name="source">The reference to reinterpret.</param>
|
|
||||||
<typeparam name="TFrom">The type of reference to reinterpret..</typeparam>
|
|
||||||
<typeparam name="TTo">The desired type of the reference.</typeparam>
|
|
||||||
<returns>A reference to a value of type <typeparamref name="TTo">TTo</typeparamref>.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AsPointer``1(``0@)">
|
|
||||||
<summary>Returns a pointer to the given by-ref parameter.</summary>
|
|
||||||
<param name="value">The object whose pointer is obtained.</param>
|
|
||||||
<typeparam name="T">The type of object.</typeparam>
|
|
||||||
<returns>A pointer to the given value.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(System.Void*)">
|
|
||||||
<summary>Reinterprets the given location as a reference to a value of type <typeparamref name="T">T</typeparamref>.</summary>
|
|
||||||
<param name="source">The location of the value to reference.</param>
|
|
||||||
<typeparam name="T">The type of the interpreted location.</typeparam>
|
|
||||||
<returns>A reference to a value of type <typeparamref name="T">T</typeparamref>.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ByteOffset``1(``0@,``0@)">
|
|
||||||
<summary>Determines the byte offset from origin to target from the given references.</summary>
|
|
||||||
<param name="origin">The reference to origin.</param>
|
|
||||||
<param name="target">The reference to target.</param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>Byte offset from origin to target i.e. <paramref name="target">target</paramref> - <paramref name="origin">origin</paramref>.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(System.Void*,``0@)">
|
|
||||||
<summary>Copies a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
|
||||||
<param name="destination">The location to copy to.</param>
|
|
||||||
<param name="source">A reference to the value to copy.</param>
|
|
||||||
<typeparam name="T">The type of value to copy.</typeparam>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(``0@,System.Void*)">
|
|
||||||
<summary>Copies a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
|
||||||
<param name="destination">The location to copy to.</param>
|
|
||||||
<param name="source">A pointer to the value to copy.</param>
|
|
||||||
<typeparam name="T">The type of value to copy.</typeparam>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Byte@,System.Byte@,System.UInt32)">
|
|
||||||
<summary>Copies bytes from the source address to the destination address.</summary>
|
|
||||||
<param name="destination">The destination address to copy to.</param>
|
|
||||||
<param name="source">The source address to copy from.</param>
|
|
||||||
<param name="byteCount">The number of bytes to copy.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Void*,System.Void*,System.UInt32)">
|
|
||||||
<summary>Copies bytes from the source address to the destination address.</summary>
|
|
||||||
<param name="destination">The destination address to copy to.</param>
|
|
||||||
<param name="source">The source address to copy from.</param>
|
|
||||||
<param name="byteCount">The number of bytes to copy.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Void*,System.Void*,System.UInt32)">
|
|
||||||
<summary>Copies bytes from the source address to the destination address
|
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The destination address to copy to.</param>
|
|
||||||
<param name="source">The source address to copy from.</param>
|
|
||||||
<param name="byteCount">The number of bytes to copy.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Byte@,System.Byte@,System.UInt32)">
|
|
||||||
<summary>Copies bytes from the source address to the destination address
|
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The destination address to copy to.</param>
|
|
||||||
<param name="source">The source address to copy from.</param>
|
|
||||||
<param name="byteCount">The number of bytes to copy.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Byte@,System.Byte,System.UInt32)">
|
|
||||||
<summary>Initializes a block of memory at the given location with a given initial value.</summary>
|
|
||||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
|
||||||
<param name="value">The value to initialize the block to.</param>
|
|
||||||
<param name="byteCount">The number of bytes to initialize.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlock(System.Void*,System.Byte,System.UInt32)">
|
|
||||||
<summary>Initializes a block of memory at the given location with a given initial value.</summary>
|
|
||||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
|
||||||
<param name="value">The value to initialize the block to.</param>
|
|
||||||
<param name="byteCount">The number of bytes to initialize.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Byte@,System.Byte,System.UInt32)">
|
|
||||||
<summary>Initializes a block of memory at the given location with a given initial value
|
|
||||||
without assuming architecture dependent alignment of the address.</summary>
|
|
||||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
|
||||||
<param name="value">The value to initialize the block to.</param>
|
|
||||||
<param name="byteCount">The number of bytes to initialize.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Void*,System.Byte,System.UInt32)">
|
|
||||||
<summary>Initializes a block of memory at the given location with a given initial value
|
|
||||||
without assuming architecture dependent alignment of the address.</summary>
|
|
||||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
|
||||||
<param name="value">The value to initialize the block to.</param>
|
|
||||||
<param name="byteCount">The number of bytes to initialize.</param>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Read``1(System.Void*)">
|
|
||||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location.</summary>
|
|
||||||
<param name="source">The location to read from.</param>
|
|
||||||
<typeparam name="T">The type to read.</typeparam>
|
|
||||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Byte@)">
|
|
||||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location
|
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="source">The location to read from.</param>
|
|
||||||
<typeparam name="T">The type to read.</typeparam>
|
|
||||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Void*)">
|
|
||||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location
|
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="source">The location to read from.</param>
|
|
||||||
<typeparam name="T">The type to read.</typeparam>
|
|
||||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.SizeOf``1">
|
|
||||||
<summary>Returns the size of an object of the given type parameter.</summary>
|
|
||||||
<typeparam name="T">The type of object whose size is retrieved.</typeparam>
|
|
||||||
<returns>The size of an object of type <typeparamref name="T">T</typeparamref>.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.Int32)">
|
|
||||||
<summary>Subtracts an element offset from the given reference.</summary>
|
|
||||||
<param name="source">The reference to subtract the offset from.</param>
|
|
||||||
<param name="elementOffset">The offset to subtract.</param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.IntPtr)">
|
|
||||||
<summary>Subtracts an element offset from the given reference.</summary>
|
|
||||||
<param name="source">The reference to subtract the offset from.</param>
|
|
||||||
<param name="elementOffset">The offset to subtract.</param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.IntPtr)">
|
|
||||||
<summary>Subtracts a byte offset from the given reference.</summary>
|
|
||||||
<param name="source">The reference to subtract the offset from.</param>
|
|
||||||
<param name="byteOffset"></param>
|
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
|
||||||
<returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Write``1(System.Void*,``0)">
|
|
||||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
|
||||||
<param name="destination">The location to write to.</param>
|
|
||||||
<param name="value">The value to write.</param>
|
|
||||||
<typeparam name="T">The type of value to write.</typeparam>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Byte@,``0)">
|
|
||||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location
|
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The location to write to.</param>
|
|
||||||
<param name="value">The value to write.</param>
|
|
||||||
<typeparam name="T">The type of value to write.</typeparam>
|
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Void*,``0)">
|
|
||||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location
|
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The location to write to.</param>
|
|
||||||
<param name="value">The value to write.</param>
|
|
||||||
<typeparam name="T">The type of value to write.</typeparam>
|
|
||||||
</member>
|
|
||||||
</members>
|
|
||||||
</doc>
|
|
@ -1 +0,0 @@
|
|||||||
02b11eeee1fbc5f3ef43a1452fe07efd25fa1715
|
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 40d60631611f025478821fa08409cd8c
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
BIN
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/Icon.png
vendored
Normal file
BIN
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/Icon.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
127
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/Icon.png.meta
vendored
Normal file
127
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/Icon.png.meta
vendored
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0e3d51ee714483b4296ed3f345349d94
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 12
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 1
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 0
|
||||||
|
wrapV: 0
|
||||||
|
wrapW: 0
|
||||||
|
nPOTScale: 1
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 0
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 100
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 0
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 0
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Server
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID:
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 730c983d2c070864992ba21ba91d94c9
|
guid: 1534653a6df9fba499a0f8b0836c9b5d
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
|
||||||
|
<metadata>
|
||||||
|
<id>System.Runtime.CompilerServices.Unsafe</id>
|
||||||
|
<version>6.0.0</version>
|
||||||
|
<authors>Microsoft</authors>
|
||||||
|
<license type="expression">MIT</license>
|
||||||
|
<licenseUrl>https://licenses.nuget.org/MIT</licenseUrl>
|
||||||
|
<icon>Icon.png</icon>
|
||||||
|
<projectUrl>https://dot.net/</projectUrl>
|
||||||
|
<description>Provides the System.Runtime.CompilerServices.Unsafe class, which provides generic, low-level functionality for manipulating pointers.
|
||||||
|
|
||||||
|
Commonly Used Types:
|
||||||
|
System.Runtime.CompilerServices.Unsafe</description>
|
||||||
|
<releaseNotes>https://go.microsoft.com/fwlink/?LinkID=799421</releaseNotes>
|
||||||
|
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
|
||||||
|
<serviceable>true</serviceable>
|
||||||
|
<repository type="git" url="https://github.com/dotnet/runtime" commit="4822e3c3aa77eb82b2fb33c9321f923cf11ddde6" />
|
||||||
|
<dependencies>
|
||||||
|
<group targetFramework=".NETFramework4.6.1" />
|
||||||
|
<group targetFramework=".NETCoreApp3.1" />
|
||||||
|
<group targetFramework="net6.0" />
|
||||||
|
<group targetFramework=".NETStandard2.0" />
|
||||||
|
</dependencies>
|
||||||
|
<frameworkAssemblies>
|
||||||
|
<frameworkAssembly assemblyName="mscorlib" targetFramework=".NETFramework4.6.1" />
|
||||||
|
</frameworkAssemblies>
|
||||||
|
</metadata>
|
||||||
|
</package>
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 0ad80367ad9e0fd418de576d0bc7197c
|
guid: 5cdca09920d14404fad09bd3b9048dd3
|
||||||
DefaultImporter:
|
DefaultImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
939
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/THIRD-PARTY-NOTICES.TXT
vendored
Normal file
939
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/THIRD-PARTY-NOTICES.TXT
vendored
Normal file
@ -0,0 +1,939 @@
|
|||||||
|
.NET Runtime uses third-party libraries or other resources that may be
|
||||||
|
distributed under licenses different than the .NET Runtime software.
|
||||||
|
|
||||||
|
In the event that we accidentally failed to list a required notice, please
|
||||||
|
bring it to our attention. Post an issue or email us:
|
||||||
|
|
||||||
|
dotnet@microsoft.com
|
||||||
|
|
||||||
|
The attached notices are provided for information only.
|
||||||
|
|
||||||
|
License notice for ASP.NET
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
Copyright (c) .NET Foundation. All rights reserved.
|
||||||
|
Licensed under the Apache License, Version 2.0.
|
||||||
|
|
||||||
|
Available at
|
||||||
|
https://github.com/dotnet/aspnetcore/blob/main/LICENSE.txt
|
||||||
|
|
||||||
|
License notice for Slicing-by-8
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
http://sourceforge.net/projects/slicing-by-8/
|
||||||
|
|
||||||
|
Copyright (c) 2004-2006 Intel Corporation - All Rights Reserved
|
||||||
|
|
||||||
|
|
||||||
|
This software program is licensed subject to the BSD License, available at
|
||||||
|
http://www.opensource.org/licenses/bsd-license.html.
|
||||||
|
|
||||||
|
|
||||||
|
License notice for Unicode data
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
https://www.unicode.org/license.html
|
||||||
|
|
||||||
|
Copyright © 1991-2020 Unicode, Inc. All rights reserved.
|
||||||
|
Distributed under the Terms of Use in https://www.unicode.org/copyright.html.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of the Unicode data files and any associated documentation
|
||||||
|
(the "Data Files") or Unicode software and any associated documentation
|
||||||
|
(the "Software") to deal in the Data Files or Software
|
||||||
|
without restriction, including without limitation the rights to use,
|
||||||
|
copy, modify, merge, publish, distribute, and/or sell copies of
|
||||||
|
the Data Files or Software, and to permit persons to whom the Data Files
|
||||||
|
or Software are furnished to do so, provided that either
|
||||||
|
(a) this copyright and permission notice appear with all copies
|
||||||
|
of the Data Files or Software, or
|
||||||
|
(b) this copyright and permission notice appear in associated
|
||||||
|
Documentation.
|
||||||
|
|
||||||
|
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF
|
||||||
|
ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||||
|
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT OF THIRD PARTY RIGHTS.
|
||||||
|
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS
|
||||||
|
NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
|
||||||
|
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
||||||
|
DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||||
|
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
PERFORMANCE OF THE DATA FILES OR SOFTWARE.
|
||||||
|
|
||||||
|
Except as contained in this notice, the name of a copyright holder
|
||||||
|
shall not be used in advertising or otherwise to promote the sale,
|
||||||
|
use or other dealings in these Data Files or Software without prior
|
||||||
|
written authorization of the copyright holder.
|
||||||
|
|
||||||
|
License notice for Zlib
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
https://github.com/madler/zlib
|
||||||
|
http://zlib.net/zlib_license.html
|
||||||
|
|
||||||
|
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
||||||
|
version 1.2.11, January 15th, 2017
|
||||||
|
|
||||||
|
Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
|
Jean-loup Gailly Mark Adler
|
||||||
|
jloup@gzip.org madler@alumni.caltech.edu
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
License notice for Mono
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
http://www.mono-project.com/docs/about-mono/
|
||||||
|
|
||||||
|
Copyright (c) .NET Foundation Contributors
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the Software), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
License notice for International Organization for Standardization
|
||||||
|
-----------------------------------------------------------------
|
||||||
|
|
||||||
|
Portions (C) International Organization for Standardization 1986:
|
||||||
|
Permission to copy in any form is granted for use with
|
||||||
|
conforming SGML systems and applications as defined in
|
||||||
|
ISO 8879, provided this notice is included in all copies.
|
||||||
|
|
||||||
|
License notice for Intel
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
"Copyright (c) 2004-2006 Intel Corporation - All Rights Reserved
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||||
|
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||||
|
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||||
|
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
License notice for Xamarin and Novell
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2015 Xamarin, Inc (http://www.xamarin.com)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
Copyright (c) 2011 Novell, Inc (http://www.novell.com)
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
Third party notice for W3C
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
"W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE
|
||||||
|
Status: This license takes effect 13 May, 2015.
|
||||||
|
This work is being provided by the copyright holders under the following license.
|
||||||
|
License
|
||||||
|
By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.
|
||||||
|
Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:
|
||||||
|
The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
|
||||||
|
Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
|
||||||
|
Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."
|
||||||
|
Disclaimers
|
||||||
|
THIS WORK IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENT WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
|
||||||
|
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENT.
|
||||||
|
The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the work without specific, written prior permission. Title to copyright in this work will at all times remain with copyright holders."
|
||||||
|
|
||||||
|
License notice for Bit Twiddling Hacks
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
Bit Twiddling Hacks
|
||||||
|
|
||||||
|
By Sean Eron Anderson
|
||||||
|
seander@cs.stanford.edu
|
||||||
|
|
||||||
|
Individually, the code snippets here are in the public domain (unless otherwise
|
||||||
|
noted) — feel free to use them however you please. The aggregate collection and
|
||||||
|
descriptions are © 1997-2005 Sean Eron Anderson. The code and descriptions are
|
||||||
|
distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY and
|
||||||
|
without even the implied warranty of merchantability or fitness for a particular
|
||||||
|
purpose.
|
||||||
|
|
||||||
|
License notice for Brotli
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2009, 2010, 2013-2016 by the Brotli Authors.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
compress_fragment.c:
|
||||||
|
Copyright (c) 2011, Google Inc.
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
* Neither the name of Google Inc. nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
decode_fuzzer.c:
|
||||||
|
Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
* Neither the name of Google Inc. nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
""AS IS"" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||||
|
|
||||||
|
License notice for Json.NET
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2007 James Newton-King
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||||
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||||
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||||
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
License notice for vectorized base64 encoding / decoding
|
||||||
|
--------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 2005-2007, Nick Galbreath
|
||||||
|
Copyright (c) 2013-2017, Alfred Klomp
|
||||||
|
Copyright (c) 2015-2017, Wojciech Mula
|
||||||
|
Copyright (c) 2016-2017, Matthieu Darbois
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
- Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
- Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||||||
|
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||||
|
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||||
|
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||||
|
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||||
|
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
License notice for RFC 3492
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
The punycode implementation is based on the sample code in RFC 3492
|
||||||
|
|
||||||
|
Copyright (C) The Internet Society (2003). All Rights Reserved.
|
||||||
|
|
||||||
|
This document and translations of it may be copied and furnished to
|
||||||
|
others, and derivative works that comment on or otherwise explain it
|
||||||
|
or assist in its implementation may be prepared, copied, published
|
||||||
|
and distributed, in whole or in part, without restriction of any
|
||||||
|
kind, provided that the above copyright notice and this paragraph are
|
||||||
|
included on all such copies and derivative works. However, this
|
||||||
|
document itself may not be modified in any way, such as by removing
|
||||||
|
the copyright notice or references to the Internet Society or other
|
||||||
|
Internet organizations, except as needed for the purpose of
|
||||||
|
developing Internet standards in which case the procedures for
|
||||||
|
copyrights defined in the Internet Standards process must be
|
||||||
|
followed, or as required to translate it into languages other than
|
||||||
|
English.
|
||||||
|
|
||||||
|
The limited permissions granted above are perpetual and will not be
|
||||||
|
revoked by the Internet Society or its successors or assigns.
|
||||||
|
|
||||||
|
This document and the information contained herein is provided on an
|
||||||
|
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
|
||||||
|
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
|
||||||
|
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
|
||||||
|
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
License notice for Algorithm from Internet Draft document "UUIDs and GUIDs"
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
|
||||||
|
Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
|
||||||
|
Digital Equipment Corporation, Maynard, Mass.
|
||||||
|
To anyone who acknowledges that this file is provided "AS IS"
|
||||||
|
without any express or implied warranty: permission to use, copy,
|
||||||
|
modify, and distribute this file for any purpose is hereby
|
||||||
|
granted without fee, provided that the above copyright notices and
|
||||||
|
this notice appears in all source code copies, and that none of
|
||||||
|
the names of Open Software Foundation, Inc., Hewlett-Packard
|
||||||
|
Company, or Digital Equipment Corporation be used in advertising
|
||||||
|
or publicity pertaining to distribution of the software without
|
||||||
|
specific, written prior permission. Neither Open Software
|
||||||
|
Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital Equipment
|
||||||
|
Corporation makes any representations about the suitability of
|
||||||
|
this software for any purpose.
|
||||||
|
|
||||||
|
Copyright(C) The Internet Society 1997. All Rights Reserved.
|
||||||
|
|
||||||
|
This document and translations of it may be copied and furnished to others,
|
||||||
|
and derivative works that comment on or otherwise explain it or assist in
|
||||||
|
its implementation may be prepared, copied, published and distributed, in
|
||||||
|
whole or in part, without restriction of any kind, provided that the above
|
||||||
|
copyright notice and this paragraph are included on all such copies and
|
||||||
|
derivative works.However, this document itself may not be modified in any
|
||||||
|
way, such as by removing the copyright notice or references to the Internet
|
||||||
|
Society or other Internet organizations, except as needed for the purpose of
|
||||||
|
developing Internet standards in which case the procedures for copyrights
|
||||||
|
defined in the Internet Standards process must be followed, or as required
|
||||||
|
to translate it into languages other than English.
|
||||||
|
|
||||||
|
The limited permissions granted above are perpetual and will not be revoked
|
||||||
|
by the Internet Society or its successors or assigns.
|
||||||
|
|
||||||
|
This document and the information contained herein is provided on an "AS IS"
|
||||||
|
basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE
|
||||||
|
DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
||||||
|
ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY
|
||||||
|
RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
License notice for Algorithm from RFC 4122 -
|
||||||
|
A Universally Unique IDentifier (UUID) URN Namespace
|
||||||
|
----------------------------------------------------
|
||||||
|
|
||||||
|
Copyright (c) 1990- 1993, 1996 Open Software Foundation, Inc.
|
||||||
|
Copyright (c) 1989 by Hewlett-Packard Company, Palo Alto, Ca. &
|
||||||
|
Digital Equipment Corporation, Maynard, Mass.
|
||||||
|
Copyright (c) 1998 Microsoft.
|
||||||
|
To anyone who acknowledges that this file is provided "AS IS"
|
||||||
|
without any express or implied warranty: permission to use, copy,
|
||||||
|
modify, and distribute this file for any purpose is hereby
|
||||||
|
granted without fee, provided that the above copyright notices and
|
||||||
|
this notice appears in all source code copies, and that none of
|
||||||
|
the names of Open Software Foundation, Inc., Hewlett-Packard
|
||||||
|
Company, Microsoft, or Digital Equipment Corporation be used in
|
||||||
|
advertising or publicity pertaining to distribution of the software
|
||||||
|
without specific, written prior permission. Neither Open Software
|
||||||
|
Foundation, Inc., Hewlett-Packard Company, Microsoft, nor Digital
|
||||||
|
Equipment Corporation makes any representations about the
|
||||||
|
suitability of this software for any purpose."
|
||||||
|
|
||||||
|
License notice for The LLVM Compiler Infrastructure
|
||||||
|
---------------------------------------------------
|
||||||
|
|
||||||
|
Developed by:
|
||||||
|
|
||||||
|
LLVM Team
|
||||||
|
|
||||||
|
University of Illinois at Urbana-Champaign
|
||||||
|
|
||||||
|
http://llvm.org
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal with
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||||
|
of the Software, and to permit persons to whom the Software is furnished to do
|
||||||
|
so, subject to the following conditions:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimers.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimers in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
* Neither the names of the LLVM Team, University of Illinois at
|
||||||
|
Urbana-Champaign, nor the names of its contributors may be used to
|
||||||
|
endorse or promote products derived from this Software without specific
|
||||||
|
prior written permission.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
License notice for Bob Jenkins
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
By Bob Jenkins, 1996. bob_jenkins@burtleburtle.net. You may use this
|
||||||
|
code any way you wish, private, educational, or commercial. It's free.
|
||||||
|
|
||||||
|
License notice for Greg Parker
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
Greg Parker gparker@cs.stanford.edu December 2000
|
||||||
|
This code is in the public domain and may be copied or modified without
|
||||||
|
permission.
|
||||||
|
|
||||||
|
License notice for libunwind based code
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
License notice for Printing Floating-Point Numbers (Dragon4)
|
||||||
|
------------------------------------------------------------
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
Copyright (c) 2014 Ryan Juckett
|
||||||
|
http://www.ryanjuckett.com/
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
|
||||||
|
3. This notice may not be removed or altered from any source
|
||||||
|
distribution.
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
License notice for Printing Floating-point Numbers (Grisu3)
|
||||||
|
-----------------------------------------------------------
|
||||||
|
|
||||||
|
Copyright 2012 the V8 project authors. All rights reserved.
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following
|
||||||
|
disclaimer in the documentation and/or other materials provided
|
||||||
|
with the distribution.
|
||||||
|
* Neither the name of Google Inc. nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived
|
||||||
|
from this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
License notice for xxHash
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
xxHash Library
|
||||||
|
Copyright (c) 2012-2014, Yann Collet
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
* Redistributions in binary form must reproduce the above copyright notice, this
|
||||||
|
list of conditions and the following disclaimer in the documentation and/or
|
||||||
|
other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
License notice for Berkeley SoftFloat Release 3e
|
||||||
|
------------------------------------------------
|
||||||
|
|
||||||
|
https://github.com/ucb-bar/berkeley-softfloat-3
|
||||||
|
https://github.com/ucb-bar/berkeley-softfloat-3/blob/master/COPYING.txt
|
||||||
|
|
||||||
|
License for Berkeley SoftFloat Release 3e
|
||||||
|
|
||||||
|
John R. Hauser
|
||||||
|
2018 January 20
|
||||||
|
|
||||||
|
The following applies to the whole of SoftFloat Release 3e as well as to
|
||||||
|
each source file individually.
|
||||||
|
|
||||||
|
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 The Regents of the
|
||||||
|
University of California. All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistributions of source code must retain the above copyright notice,
|
||||||
|
this list of conditions, and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions, and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of the University nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS", AND ANY
|
||||||
|
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
|
||||||
|
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
|
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
License notice for xoshiro RNGs
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
Written in 2018 by David Blackman and Sebastiano Vigna (vigna@acm.org)
|
||||||
|
|
||||||
|
To the extent possible under law, the author has dedicated all copyright
|
||||||
|
and related and neighboring rights to this software to the public domain
|
||||||
|
worldwide. This software is distributed without any warranty.
|
||||||
|
|
||||||
|
See <http://creativecommons.org/publicdomain/zero/1.0/>.
|
||||||
|
|
||||||
|
License for fastmod (https://github.com/lemire/fastmod) and ibm-fpgen (https://github.com/nigeltao/parse-number-fxx-test-data)
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
Copyright 2018 Daniel Lemire
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
|
||||||
|
License notice for The C++ REST SDK
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
C++ REST SDK
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) Microsoft Corporation
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||||
|
this software and associated documentation files (the "Software"), to deal in
|
||||||
|
the Software without restriction, including without limitation the rights to
|
||||||
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||||
|
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||||
|
subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
License notice for MessagePack-CSharp
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
MessagePack for C#
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2017 Yoshifumi Kawai
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
License notice for lz4net
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
lz4net
|
||||||
|
|
||||||
|
Copyright (c) 2013-2017, Milosz Krajewski
|
||||||
|
|
||||||
|
All rights reserved.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
License notice for Nerdbank.Streams
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) Andrew Arnott
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
License notice for RapidJSON
|
||||||
|
----------------------------
|
||||||
|
|
||||||
|
Tencent is pleased to support the open source community by making RapidJSON available.
|
||||||
|
|
||||||
|
Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
|
||||||
|
|
||||||
|
Licensed under the MIT License (the "License"); you may not use this file except
|
||||||
|
in compliance with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software distributed
|
||||||
|
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||||
|
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
||||||
|
specific language governing permissions and limitations under the License.
|
||||||
|
|
||||||
|
License notice for DirectX Math Library
|
||||||
|
---------------------------------------
|
||||||
|
|
||||||
|
https://github.com/microsoft/DirectXMath/blob/master/LICENSE
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2011-2020 Microsoft Corp
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||||
|
software and associated documentation files (the "Software"), to deal in the Software
|
||||||
|
without restriction, including without limitation the rights to use, copy, modify,
|
||||||
|
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to the following
|
||||||
|
conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies
|
||||||
|
or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||||
|
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||||
|
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
||||||
|
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
||||||
|
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
License notice for ldap4net
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2018 Alexander Chermyanin
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
License notice for vectorized sorting code
|
||||||
|
------------------------------------------
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020 Dan Shechter
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
|
||||||
|
License notice for musl
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
musl as a whole is licensed under the following standard MIT license:
|
||||||
|
|
||||||
|
Copyright © 2005-2020 Rich Felker, et al.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
License notice for "Faster Unsigned Division by Constants"
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
Reference implementations of computing and using the "magic number" approach to dividing
|
||||||
|
by constants, including codegen instructions. The unsigned division incorporates the
|
||||||
|
"round down" optimization per ridiculous_fish.
|
||||||
|
|
||||||
|
This is free and unencumbered software. Any copyright is dedicated to the Public Domain.
|
||||||
|
|
||||||
|
|
||||||
|
License notice for mimalloc
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2019 Microsoft Corporation, Daan Leijen
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 495cf1a0b48abaf439035bd6e3ba0226
|
guid: ea4fcbd60d6e4f243aa4a62f64e4a3d0
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
8
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/buildTransitive.meta
vendored
Normal file
8
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/buildTransitive.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f4213adfea72d9240a09f40695da02e9
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d8739582cedf4f74da8a39231ff16e58
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,6 @@
|
|||||||
|
<Project InitialTargets="NETStandardCompatError_System_Runtime_CompilerServices_Unsafe_netcoreapp3_1">
|
||||||
|
<Target Name="NETStandardCompatError_System_Runtime_CompilerServices_Unsafe_netcoreapp3_1"
|
||||||
|
Condition="'$(SuppressTfmSupportBuildWarnings)' == ''">
|
||||||
|
<Error Text="System.Runtime.CompilerServices.Unsafe doesn't support $(TargetFramework). Consider updating your TargetFramework to netcoreapp3.1 or later." />
|
||||||
|
</Target>
|
||||||
|
</Project>
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 503a5ac04b691ab48b605122089a63f4
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 23320644219dec0458a5459a4dd27ef9
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 852620e6ae9311740af3d7cdd082b899
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/lib.meta
vendored
Normal file
8
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/lib.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4e171f328f7c83c4fae2179e09e4ae38
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/lib/netstandard2.0.meta
vendored
Normal file
8
JNFrame/Assets/Packages/System.Runtime.CompilerServices.Unsafe.6.0.0/lib/netstandard2.0.meta
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0320b56f1a748e74daec15e95b977570
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 6dc30032884285a4c9d2e3474a13121d
|
guid: b29c0fb409eb0924b954a11e415c7194
|
||||||
labels:
|
labels:
|
||||||
- NuGetForUnity
|
- NuGetForUnity
|
||||||
PluginImporter:
|
PluginImporter:
|
@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?><doc>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<doc>
|
||||||
<assembly>
|
<assembly>
|
||||||
<name>System.Runtime.CompilerServices.Unsafe</name>
|
<name>System.Runtime.CompilerServices.Unsafe</name>
|
||||||
</assembly>
|
</assembly>
|
||||||
@ -20,6 +21,20 @@
|
|||||||
<typeparam name="T">The type of reference.</typeparam>
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
<returns>A new reference that reflects the addition of offset to pointer.</returns>
|
<returns>A new reference that reflects the addition of offset to pointer.</returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(``0@,System.UIntPtr)">
|
||||||
|
<summary>Adds an element offset to the given reference.</summary>
|
||||||
|
<param name="source">The reference to add the offset to.</param>
|
||||||
|
<param name="elementOffset">The offset to add.</param>
|
||||||
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
|
<returns>A new reference that reflects the addition of offset to pointer.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Add``1(System.Void*,System.Int32)">
|
||||||
|
<summary>Adds an element offset to the given void pointer.</summary>
|
||||||
|
<param name="source">The void pointer to add the offset to.</param>
|
||||||
|
<param name="elementOffset">The offset to add.</param>
|
||||||
|
<typeparam name="T">The type of void pointer.</typeparam>
|
||||||
|
<returns>A new void pointer that reflects the addition of offset to the specified pointer.</returns>
|
||||||
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.IntPtr)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.IntPtr)">
|
||||||
<summary>Adds a byte offset to the given reference.</summary>
|
<summary>Adds a byte offset to the given reference.</summary>
|
||||||
<param name="source">The reference to add the offset to.</param>
|
<param name="source">The reference to add the offset to.</param>
|
||||||
@ -27,12 +42,20 @@
|
|||||||
<typeparam name="T">The type of reference.</typeparam>
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
<returns>A new reference that reflects the addition of byte offset to pointer.</returns>
|
<returns>A new reference that reflects the addition of byte offset to pointer.</returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.AddByteOffset``1(``0@,System.UIntPtr)">
|
||||||
|
<summary>Adds a byte offset to the given reference.</summary>
|
||||||
|
<param name="source">The reference to add the offset to.</param>
|
||||||
|
<param name="byteOffset">The offset to add.</param>
|
||||||
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
|
<returns>A new reference that reflects the addition of byte offset to pointer.</returns>
|
||||||
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AreSame``1(``0@,``0@)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.AreSame``1(``0@,``0@)">
|
||||||
<summary>Determines whether the specified references point to the same location.</summary>
|
<summary>Determines whether the specified references point to the same location.</summary>
|
||||||
<param name="left">The first reference to compare.</param>
|
<param name="left">The first reference to compare.</param>
|
||||||
<param name="right">The second reference to compare.</param>
|
<param name="right">The second reference to compare.</param>
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
<returns>true if <paramref name="left">left</paramref> and <paramref name="right">right</paramref> point to the same location; otherwise, false.</returns>
|
<returns>
|
||||||
|
<see langword="true" /> if <paramref name="left" /> and <paramref name="right" /> point to the same location; otherwise, <see langword="false" />.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.As``1(System.Object)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.As``1(System.Object)">
|
||||||
<summary>Casts the given object to the specified type.</summary>
|
<summary>Casts the given object to the specified type.</summary>
|
||||||
@ -41,11 +64,11 @@
|
|||||||
<returns>The original object, casted to the given type.</returns>
|
<returns>The original object, casted to the given type.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.As``2(``0@)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.As``2(``0@)">
|
||||||
<summary>Reinterprets the given reference as a reference to a value of type <typeparamref name="TTo">TTo</typeparamref>.</summary>
|
<summary>Reinterprets the given reference as a reference to a value of type <typeparamref name="TTo" />.</summary>
|
||||||
<param name="source">The reference to reinterpret.</param>
|
<param name="source">The reference to reinterpret.</param>
|
||||||
<typeparam name="TFrom">The type of reference to reinterpret..</typeparam>
|
<typeparam name="TFrom">The type of reference to reinterpret.</typeparam>
|
||||||
<typeparam name="TTo">The desired type of the reference.</typeparam>
|
<typeparam name="TTo">The desired type of the reference.</typeparam>
|
||||||
<returns>A reference to a value of type <typeparamref name="TTo">TTo</typeparamref>.</returns>
|
<returns>A reference to a value of type <typeparamref name="TTo" />.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AsPointer``1(``0@)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.AsPointer``1(``0@)">
|
||||||
<summary>Returns a pointer to the given by-ref parameter.</summary>
|
<summary>Returns a pointer to the given by-ref parameter.</summary>
|
||||||
@ -53,31 +76,37 @@
|
|||||||
<typeparam name="T">The type of object.</typeparam>
|
<typeparam name="T">The type of object.</typeparam>
|
||||||
<returns>A pointer to the given value.</returns>
|
<returns>A pointer to the given value.</returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(``0@)">
|
||||||
|
<summary>Reinterprets the given read-only reference as a reference.</summary>
|
||||||
|
<param name="source">The read-only reference to reinterpret.</param>
|
||||||
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
|
<returns>A reference to a value of type <typeparamref name="T" />.</returns>
|
||||||
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(System.Void*)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.AsRef``1(System.Void*)">
|
||||||
<summary>Reinterprets the given location as a reference to a value of type <typeparamref name="T">T</typeparamref>.</summary>
|
<summary>Reinterprets the given location as a reference to a value of type <typeparamref name="T" />.</summary>
|
||||||
<param name="source">The location of the value to reference.</param>
|
<param name="source">The location of the value to reference.</param>
|
||||||
<typeparam name="T">The type of the interpreted location.</typeparam>
|
<typeparam name="T">The type of the interpreted location.</typeparam>
|
||||||
<returns>A reference to a value of type <typeparamref name="T">T</typeparamref>.</returns>
|
<returns>A reference to a value of type <typeparamref name="T" />.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ByteOffset``1(``0@,``0@)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.ByteOffset``1(``0@,``0@)">
|
||||||
<summary>Determines the byte offset from origin to target from the given references.</summary>
|
<summary>Determines the byte offset from origin to target from the given references.</summary>
|
||||||
<param name="origin">The reference to origin.</param>
|
<param name="origin">The reference to origin.</param>
|
||||||
<param name="target">The reference to target.</param>
|
<param name="target">The reference to target.</param>
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
<returns>Byte offset from origin to target i.e. <paramref name="target">target</paramref> - <paramref name="origin">origin</paramref>.</returns>
|
<returns>Byte offset from origin to target i.e. <paramref name="target" /> - <paramref name="origin" />.</returns>
|
||||||
</member>
|
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(System.Void*,``0@)">
|
|
||||||
<summary>Copies a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
|
||||||
<param name="destination">The location to copy to.</param>
|
|
||||||
<param name="source">A reference to the value to copy.</param>
|
|
||||||
<typeparam name="T">The type of value to copy.</typeparam>
|
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(``0@,System.Void*)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(``0@,System.Void*)">
|
||||||
<summary>Copies a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
<summary>Copies a value of type <typeparamref name="T" /> to the given location.</summary>
|
||||||
<param name="destination">The location to copy to.</param>
|
<param name="destination">The location to copy to.</param>
|
||||||
<param name="source">A pointer to the value to copy.</param>
|
<param name="source">A pointer to the value to copy.</param>
|
||||||
<typeparam name="T">The type of value to copy.</typeparam>
|
<typeparam name="T">The type of value to copy.</typeparam>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Copy``1(System.Void*,``0@)">
|
||||||
|
<summary>Copies a value of type <typeparamref name="T" /> to the given location.</summary>
|
||||||
|
<param name="destination">The location to copy to.</param>
|
||||||
|
<param name="source">A reference to the value to copy.</param>
|
||||||
|
<typeparam name="T">The type of value to copy.</typeparam>
|
||||||
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Byte@,System.Byte@,System.UInt32)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlock(System.Byte@,System.Byte@,System.UInt32)">
|
||||||
<summary>Copies bytes from the source address to the destination address.</summary>
|
<summary>Copies bytes from the source address to the destination address.</summary>
|
||||||
<param name="destination">The destination address to copy to.</param>
|
<param name="destination">The destination address to copy to.</param>
|
||||||
@ -90,16 +119,14 @@
|
|||||||
<param name="source">The source address to copy from.</param>
|
<param name="source">The source address to copy from.</param>
|
||||||
<param name="byteCount">The number of bytes to copy.</param>
|
<param name="byteCount">The number of bytes to copy.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Void*,System.Void*,System.UInt32)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Byte@,System.Byte@,System.UInt32)">
|
||||||
<summary>Copies bytes from the source address to the destination address
|
<summary>Copies bytes from the source address to the destination address without assuming architecture dependent alignment of the addresses.</summary>
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The destination address to copy to.</param>
|
<param name="destination">The destination address to copy to.</param>
|
||||||
<param name="source">The source address to copy from.</param>
|
<param name="source">The source address to copy from.</param>
|
||||||
<param name="byteCount">The number of bytes to copy.</param>
|
<param name="byteCount">The number of bytes to copy.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Byte@,System.Byte@,System.UInt32)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.CopyBlockUnaligned(System.Void*,System.Void*,System.UInt32)">
|
||||||
<summary>Copies bytes from the source address to the destination address
|
<summary>Copies bytes from the source address to the destination address without assuming architecture dependent alignment of the addresses.</summary>
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The destination address to copy to.</param>
|
<param name="destination">The destination address to copy to.</param>
|
||||||
<param name="source">The source address to copy from.</param>
|
<param name="source">The source address to copy from.</param>
|
||||||
<param name="byteCount">The number of bytes to copy.</param>
|
<param name="byteCount">The number of bytes to copy.</param>
|
||||||
@ -117,81 +144,145 @@ without assuming architecture dependent alignment of the addresses.</summary>
|
|||||||
<param name="byteCount">The number of bytes to initialize.</param>
|
<param name="byteCount">The number of bytes to initialize.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Byte@,System.Byte,System.UInt32)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Byte@,System.Byte,System.UInt32)">
|
||||||
<summary>Initializes a block of memory at the given location with a given initial value
|
<summary>Initializes a block of memory at the given location with a given initial value without assuming architecture dependent alignment of the address.</summary>
|
||||||
without assuming architecture dependent alignment of the address.</summary>
|
|
||||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
||||||
<param name="value">The value to initialize the block to.</param>
|
<param name="value">The value to initialize the block to.</param>
|
||||||
<param name="byteCount">The number of bytes to initialize.</param>
|
<param name="byteCount">The number of bytes to initialize.</param>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Void*,System.Byte,System.UInt32)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.InitBlockUnaligned(System.Void*,System.Byte,System.UInt32)">
|
||||||
<summary>Initializes a block of memory at the given location with a given initial value
|
<summary>Initializes a block of memory at the given location with a given initial value without assuming architecture dependent alignment of the address.</summary>
|
||||||
without assuming architecture dependent alignment of the address.</summary>
|
|
||||||
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
<param name="startAddress">The address of the start of the memory block to initialize.</param>
|
||||||
<param name="value">The value to initialize the block to.</param>
|
<param name="value">The value to initialize the block to.</param>
|
||||||
<param name="byteCount">The number of bytes to initialize.</param>
|
<param name="byteCount">The number of bytes to initialize.</param>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.IsAddressGreaterThan``1(``0@,``0@)">
|
||||||
|
<summary>Returns a value that indicates whether a specified reference is greater than another specified reference.</summary>
|
||||||
|
<param name="left">The first value to compare.</param>
|
||||||
|
<param name="right">The second value to compare.</param>
|
||||||
|
<typeparam name="T">The type of the reference.</typeparam>
|
||||||
|
<returns>
|
||||||
|
<see langword="true" /> if <paramref name="left" /> is greater than <paramref name="right" />; otherwise, <see langword="false" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.IsAddressLessThan``1(``0@,``0@)">
|
||||||
|
<summary>Returns a value that indicates whether a specified reference is less than another specified reference.</summary>
|
||||||
|
<param name="left">The first value to compare.</param>
|
||||||
|
<param name="right">The second value to compare.</param>
|
||||||
|
<typeparam name="T">The type of the reference.</typeparam>
|
||||||
|
<returns>
|
||||||
|
<see langword="true" /> if <paramref name="left" /> is less than <paramref name="right" />; otherwise, <see langword="false" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.IsNullRef``1(``0@)">
|
||||||
|
<summary>Determines if a given reference to a value of type <typeparamref name="T" /> is a null reference.</summary>
|
||||||
|
<param name="source">The reference to check.</param>
|
||||||
|
<typeparam name="T">The type of the reference.</typeparam>
|
||||||
|
<returns>
|
||||||
|
<see langword="true" /> if <paramref name="source" /> is a null reference; otherwise, <see langword="false" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.NullRef``1">
|
||||||
|
<summary>Returns a reference to a value of type <typeparamref name="T" /> that is a null reference.</summary>
|
||||||
|
<typeparam name="T">The type of the reference.</typeparam>
|
||||||
|
<returns>A reference to a value of type <typeparamref name="T" /> that is a null reference.</returns>
|
||||||
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Read``1(System.Void*)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Read``1(System.Void*)">
|
||||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location.</summary>
|
<summary>Reads a value of type <typeparamref name="T" /> from the given location.</summary>
|
||||||
<param name="source">The location to read from.</param>
|
<param name="source">The location to read from.</param>
|
||||||
<typeparam name="T">The type to read.</typeparam>
|
<typeparam name="T">The type to read.</typeparam>
|
||||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
<returns>An object of type <typeparamref name="T" /> read from the given location.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Byte@)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Byte@)">
|
||||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location
|
<summary>Reads a value of type <typeparamref name="T" /> from the given location without assuming architecture dependent alignment of the addresses.</summary>
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="source">The location to read from.</param>
|
<param name="source">The location to read from.</param>
|
||||||
<typeparam name="T">The type to read.</typeparam>
|
<typeparam name="T">The type to read.</typeparam>
|
||||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
<returns>An object of type <typeparamref name="T" /> read from the given location.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Void*)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.ReadUnaligned``1(System.Void*)">
|
||||||
<summary>Reads a value of type <typeparamref name="T">T</typeparamref> from the given location
|
<summary>Reads a value of type <typeparamref name="T" /> from the given location without assuming architecture dependent alignment of the addresses.</summary>
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="source">The location to read from.</param>
|
<param name="source">The location to read from.</param>
|
||||||
<typeparam name="T">The type to read.</typeparam>
|
<typeparam name="T">The type to read.</typeparam>
|
||||||
<returns>An object of type <typeparamref name="T">T</typeparamref> read from the given location.</returns>
|
<returns>An object of type <typeparamref name="T" /> read from the given location.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.SizeOf``1">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.SizeOf``1">
|
||||||
<summary>Returns the size of an object of the given type parameter.</summary>
|
<summary>Returns the size of an object of the given type parameter.</summary>
|
||||||
<typeparam name="T">The type of object whose size is retrieved.</typeparam>
|
<typeparam name="T">The type of object whose size is retrieved.</typeparam>
|
||||||
<returns>The size of an object of type <typeparamref name="T">T</typeparamref>.</returns>
|
<returns>The size of an object of type <typeparamref name="T" />.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.SkipInit``1(``0@)">
|
||||||
|
<summary>Bypasses definite assignment rules for a given value.</summary>
|
||||||
|
<param name="value">The uninitialized object.</param>
|
||||||
|
<typeparam name="T">The type of the uninitialized object.</typeparam>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.Int32)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.Int32)">
|
||||||
<summary>Subtracts an element offset from the given reference.</summary>
|
<summary>Subtracts an element offset from the given reference.</summary>
|
||||||
<param name="source">The reference to subtract the offset from.</param>
|
<param name="source">The reference to subtract the offset from.</param>
|
||||||
<param name="elementOffset">The offset to subtract.</param>
|
<param name="elementOffset">The offset to subtract.</param>
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
|
<returns>A new reference that reflects the subtraction of offset from pointer.</returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.IntPtr)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.IntPtr)">
|
||||||
|
<summary>Subtracts an element offset from the given reference.</summary>
|
||||||
|
<param name="source">The reference to subtract the offset from.</param>
|
||||||
|
<param name="elementOffset">The offset to subtract.</param>
|
||||||
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
|
<returns>A new reference that reflects the subtraction of offset from pointer.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(``0@,System.UIntPtr)">
|
||||||
<summary>Subtracts an element offset from the given reference.</summary>
|
<summary>Subtracts an element offset from the given reference.</summary>
|
||||||
<param name="source">The reference to subtract the offset from.</param>
|
<param name="source">The reference to subtract the offset from.</param>
|
||||||
<param name="elementOffset">The offset to subtract.</param>
|
<param name="elementOffset">The offset to subtract.</param>
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
|
<returns>A new reference that reflects the subraction of offset from pointer.</returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Subtract``1(System.Void*,System.Int32)">
|
||||||
|
<summary>Subtracts an element offset from the given void pointer.</summary>
|
||||||
|
<param name="source">The void pointer to subtract the offset from.</param>
|
||||||
|
<param name="elementOffset">The offset to subtract.</param>
|
||||||
|
<typeparam name="T">The type of the void pointer.</typeparam>
|
||||||
|
<returns>A new void pointer that reflects the subtraction of offset from the specified pointer.</returns>
|
||||||
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.IntPtr)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.IntPtr)">
|
||||||
<summary>Subtracts a byte offset from the given reference.</summary>
|
<summary>Subtracts a byte offset from the given reference.</summary>
|
||||||
<param name="source">The reference to subtract the offset from.</param>
|
<param name="source">The reference to subtract the offset from.</param>
|
||||||
<param name="byteOffset"></param>
|
<param name="byteOffset">The offset to subtract.</param>
|
||||||
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
|
<returns>A new reference that reflects the subtraction of byte offset from pointer.</returns>
|
||||||
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.SubtractByteOffset``1(``0@,System.UIntPtr)">
|
||||||
|
<summary>Subtracts a byte offset from the given reference.</summary>
|
||||||
|
<param name="source">The reference to subtract the offset from.</param>
|
||||||
|
<param name="byteOffset">The offset to subtract.</param>
|
||||||
<typeparam name="T">The type of reference.</typeparam>
|
<typeparam name="T">The type of reference.</typeparam>
|
||||||
<returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
|
<returns>A new reference that reflects the subraction of byte offset from pointer.</returns>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Unbox``1(System.Object)">
|
||||||
|
<summary>Returns a <see langword="mutable ref" /> to a boxed value.</summary>
|
||||||
|
<param name="box">The value to unbox.</param>
|
||||||
|
<typeparam name="T">The type to be unboxed.</typeparam>
|
||||||
|
<exception cref="T:System.NullReferenceException">
|
||||||
|
<paramref name="box" /> is <see langword="null" />, and <typeparamref name="T" /> is a non-nullable value type.</exception>
|
||||||
|
<exception cref="T:System.InvalidCastException">
|
||||||
|
<paramref name="box" /> is not a boxed value type.
|
||||||
|
|
||||||
|
-or-
|
||||||
|
|
||||||
|
<paramref name="box" /> is not a boxed <typeparamref name="T" />.</exception>
|
||||||
|
<exception cref="T:System.TypeLoadException">
|
||||||
|
<typeparamref name="T" /> cannot be found.</exception>
|
||||||
|
<returns>A <see langword="mutable ref" /> to the boxed value <paramref name="box" />.</returns>
|
||||||
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.Write``1(System.Void*,``0)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.Write``1(System.Void*,``0)">
|
||||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location.</summary>
|
<summary>Writes a value of type <typeparamref name="T" /> to the given location.</summary>
|
||||||
<param name="destination">The location to write to.</param>
|
<param name="destination">The location to write to.</param>
|
||||||
<param name="value">The value to write.</param>
|
<param name="value">The value to write.</param>
|
||||||
<typeparam name="T">The type of value to write.</typeparam>
|
<typeparam name="T">The type of value to write.</typeparam>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Byte@,``0)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Byte@,``0)">
|
||||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location
|
<summary>Writes a value of type <typeparamref name="T" /> to the given location without assuming architecture dependent alignment of the addresses.</summary>
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The location to write to.</param>
|
<param name="destination">The location to write to.</param>
|
||||||
<param name="value">The value to write.</param>
|
<param name="value">The value to write.</param>
|
||||||
<typeparam name="T">The type of value to write.</typeparam>
|
<typeparam name="T">The type of value to write.</typeparam>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Void*,``0)">
|
<member name="M:System.Runtime.CompilerServices.Unsafe.WriteUnaligned``1(System.Void*,``0)">
|
||||||
<summary>Writes a value of type <typeparamref name="T">T</typeparamref> to the given location
|
<summary>Writes a value of type <typeparamref name="T" /> to the given location without assuming architecture dependent alignment of the addresses.</summary>
|
||||||
without assuming architecture dependent alignment of the addresses.</summary>
|
|
||||||
<param name="destination">The location to write to.</param>
|
<param name="destination">The location to write to.</param>
|
||||||
<param name="value">The value to write.</param>
|
<param name="value">The value to write.</param>
|
||||||
<typeparam name="T">The type of value to write.</typeparam>
|
<typeparam name="T">The type of value to write.</typeparam>
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 2861a8d84ffb5fd43a88e4c52b8ce4f0
|
guid: cb36e62886c4d824496d9c809cf06491
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
@ -1,5 +1,5 @@
|
|||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: 6ebb778c1b6cae64aa3983e2f5abdbe2
|
guid: 130ffb8196621b640bd6373840a172ea
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
8
JNFrame/Assets/Plugins/JNGame/BepuPhysics.meta
Normal file
8
JNFrame/Assets/Plugins/JNGame/BepuPhysics.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8b9d9fb46b16434388c671f9f5e7bbee
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d2b94b429bbc44d6952a716c15b9e637
|
||||||
|
timeCreated: 1706686833
|
@ -0,0 +1,74 @@
|
|||||||
|
using System;
|
||||||
|
using System.Numerics;
|
||||||
|
using BepuPhysics;
|
||||||
|
using BepuPhysics.Collidables;
|
||||||
|
|
||||||
|
namespace Plugins.JNGame.BepuPhysics.Components
|
||||||
|
{
|
||||||
|
public abstract class BPhysicsBase : UnityEngine.MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
//世界索引
|
||||||
|
public int worldIndex = 0;
|
||||||
|
|
||||||
|
protected BodyHandle BodyId;
|
||||||
|
protected StaticHandle StaticBodyId;
|
||||||
|
|
||||||
|
//是否静态
|
||||||
|
public Boolean isStatic = false;
|
||||||
|
|
||||||
|
public JNBepuPhysics Physics
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
JNBepuPhysics.Physics.TryGetValue(worldIndex, out var value);
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void AddDynamic<TShape>(TShape shape,BodyInertia shapeInertia) where TShape : unmanaged, IShape
|
||||||
|
{
|
||||||
|
|
||||||
|
var sphereIndex = this.Physics.Simulation.Shapes.Add(shape);
|
||||||
|
var transformPosition = transform.position;
|
||||||
|
var transformRotation = transform.rotation;
|
||||||
|
var spherePose = new RigidPose(new Vector3(transformPosition.x,transformPosition.y,transformPosition.z), new Quaternion(transformRotation.x,transformRotation.y,transformRotation.z,transformRotation.w));
|
||||||
|
BodyId = this.Physics.Simulation.Bodies.Add(BodyDescription.CreateDynamic(spherePose,
|
||||||
|
shapeInertia,
|
||||||
|
new CollidableDescription(sphereIndex, 0.01f),
|
||||||
|
new BodyActivityDescription(0.01f)));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void AddStatic<TShape>(TShape shape) where TShape : unmanaged, IShape
|
||||||
|
{
|
||||||
|
|
||||||
|
var transformPosition = transform.position;
|
||||||
|
var transformRotation = transform.rotation;
|
||||||
|
StaticBodyId = this.Physics.Simulation.Statics.Add(
|
||||||
|
new StaticDescription(new Vector3(transformPosition.x, transformPosition.y, transformPosition.z),
|
||||||
|
new Quaternion(transformRotation.x,transformRotation.y,transformRotation.z,transformRotation.w),
|
||||||
|
new CollidableDescription(this.Physics.Simulation.Shapes.Add(shape), 0.01f)));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnPhysicsUpdate(float dt)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (this.Physics == null) return;
|
||||||
|
if (this.isStatic) return;
|
||||||
|
|
||||||
|
this.Physics.Simulation.Bodies.GetDescription(this.BodyId,out var info);
|
||||||
|
|
||||||
|
//同步位置
|
||||||
|
var transform1 = transform;
|
||||||
|
transform1.position =
|
||||||
|
new UnityEngine.Vector3(info.Pose.Position.X, info.Pose.Position.Y, info.Pose.Position.Z);
|
||||||
|
//同步旋转
|
||||||
|
transform1.rotation =
|
||||||
|
new UnityEngine.Quaternion(info.Pose.Orientation.X, info.Pose.Orientation.Y, info.Pose.Position.Z,info.Pose.Orientation.W);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3e204f22f96e497ab13682ad13267883
|
||||||
|
timeCreated: 1706687376
|
@ -0,0 +1,37 @@
|
|||||||
|
using BepuPhysics;
|
||||||
|
using BepuPhysics.Collidables;
|
||||||
|
using UnityEngine;
|
||||||
|
using NotImplementedException = System.NotImplementedException;
|
||||||
|
using Quaternion = System.Numerics.Quaternion;
|
||||||
|
using Vector3 = System.Numerics.Vector3;
|
||||||
|
|
||||||
|
namespace Plugins.JNGame.BepuPhysics.Components
|
||||||
|
{
|
||||||
|
public class BPhysicsBox : BPhysicsBase
|
||||||
|
{
|
||||||
|
|
||||||
|
private BodyHandle bodyId;
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
|
||||||
|
if (this.Physics == null) return;
|
||||||
|
Debug.Log("BPhysicsSphere");
|
||||||
|
|
||||||
|
this.Physics.Shapes.Add(this);
|
||||||
|
var localScale = transform.localScale;
|
||||||
|
var sphereBox = new Box(localScale.x,localScale.y,localScale.z);
|
||||||
|
if (this.isStatic)
|
||||||
|
{
|
||||||
|
this.AddStatic(sphereBox);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sphereBox.ComputeInertia(0.5f, out var inertia);
|
||||||
|
this.AddDynamic(sphereBox,inertia);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2f56304910dd4846981c5f978f90ebf6
|
||||||
|
timeCreated: 1706690344
|
@ -0,0 +1,24 @@
|
|||||||
|
using BepuPhysics.Collidables;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace Plugins.JNGame.BepuPhysics.Components
|
||||||
|
{
|
||||||
|
public class BPhysicsSphere : BPhysicsBase
|
||||||
|
{
|
||||||
|
|
||||||
|
void Awake()
|
||||||
|
{
|
||||||
|
|
||||||
|
if (this.Physics == null) return;
|
||||||
|
Debug.Log("BPhysicsSphere");
|
||||||
|
|
||||||
|
this.Physics.Shapes.Add(this);
|
||||||
|
var sphereShape = new Sphere(transform.localScale.x / 2);
|
||||||
|
sphereShape.ComputeInertia(0.5f, out var sphereInertia);
|
||||||
|
this.AddDynamic(sphereShape,sphereInertia);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 98c11bfd0d424f98a6634403fca61c34
|
||||||
|
timeCreated: 1706686910
|
@ -0,0 +1,8 @@
|
|||||||
|
namespace Plugins.JNGame.BepuPhysics.Components
|
||||||
|
{
|
||||||
|
public enum BShape
|
||||||
|
{
|
||||||
|
/// <summary> Sphere shape type </summary>
|
||||||
|
Sphere = 1,
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 499b044e9991435ab5054521c2833c00
|
||||||
|
timeCreated: 1706686981
|
46
JNFrame/Assets/Plugins/JNGame/BepuPhysics/JNBepuPhysics.cs
Normal file
46
JNFrame/Assets/Plugins/JNGame/BepuPhysics/JNBepuPhysics.cs
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using BepuPhysics;
|
||||||
|
using BepuPhysics.Collidables;
|
||||||
|
using BepuUtilities;
|
||||||
|
using BepuUtilities.Memory;
|
||||||
|
using Plugins.JNGame.BepuPhysics.Components;
|
||||||
|
using Plugins.JNGame.BepuPhysics.Utilities;
|
||||||
|
using UnityEngine;
|
||||||
|
using Vector3 = System.Numerics.Vector3;
|
||||||
|
|
||||||
|
namespace Plugins.JNGame.BepuPhysics
|
||||||
|
{
|
||||||
|
public class JNBepuPhysics
|
||||||
|
{
|
||||||
|
|
||||||
|
public static Dictionary<int,JNBepuPhysics> Physics = new();
|
||||||
|
|
||||||
|
private UnityEngine.Vector3 _gravity = new (0,10,0);
|
||||||
|
public Simulation Simulation { get; protected set; }
|
||||||
|
public BufferPool BufferPool { get; private set; }
|
||||||
|
|
||||||
|
public List<BPhysicsBase> Shapes = new();
|
||||||
|
|
||||||
|
|
||||||
|
public JNBepuPhysics(int index = 0)
|
||||||
|
{
|
||||||
|
Debug.Log($"初始化物理引擎");
|
||||||
|
Physics[index] = this;
|
||||||
|
BufferPool = new BufferPool();
|
||||||
|
Simulation = Simulation.Create(BufferPool,new JNNarrowPhaseCallbacks(),new JNPoseIntegratorCallbacks(new Vector3(_gravity.x, -_gravity.y, _gravity.z)),new PositionFirstTimestepper());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//更新
|
||||||
|
public void OnUpdate(float dt)
|
||||||
|
{
|
||||||
|
Simulation.Timestep(dt);
|
||||||
|
Shapes.ForEach(shapes =>
|
||||||
|
{
|
||||||
|
shapes.OnPhysicsUpdate(dt);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 99bf23b7fe9748f1a3e20d10104d3d85
|
||||||
|
timeCreated: 1706683683
|
3
JNFrame/Assets/Plugins/JNGame/BepuPhysics/Utilities.meta
Normal file
3
JNFrame/Assets/Plugins/JNGame/BepuPhysics/Utilities.meta
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7c60528953194e20af106b83b9e746de
|
||||||
|
timeCreated: 1706683642
|
@ -0,0 +1,134 @@
|
|||||||
|
using System;
|
||||||
|
using BepuPhysics;
|
||||||
|
using BepuPhysics.Collidables;
|
||||||
|
using BepuPhysics.CollisionDetection;
|
||||||
|
using BepuPhysics.Constraints;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Numerics;
|
||||||
|
using BepuUtilities;
|
||||||
|
|
||||||
|
namespace Plugins.JNGame.BepuPhysics.Utilities
|
||||||
|
{
|
||||||
|
public struct JNPoseIntegratorCallbacks : IPoseIntegratorCallbacks
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Gravity to apply to dynamic bodies in the simulation.
|
||||||
|
/// </summary>
|
||||||
|
public Vector3 Gravity;
|
||||||
|
/// <summary>
|
||||||
|
/// Fraction of dynamic body linear velocity to remove per unit of time. Values range from 0 to 1. 0 is fully undamped, while values very close to 1 will remove most velocity.
|
||||||
|
/// </summary>
|
||||||
|
public float LinearDamping;
|
||||||
|
/// <summary>
|
||||||
|
/// Fraction of dynamic body angular velocity to remove per unit of time. Values range from 0 to 1. 0 is fully undamped, while values very close to 1 will remove most velocity.
|
||||||
|
/// </summary>
|
||||||
|
public float AngularDamping;
|
||||||
|
|
||||||
|
Vector3 gravityDt;
|
||||||
|
float linearDampingDt;
|
||||||
|
float angularDampingDt;
|
||||||
|
|
||||||
|
public AngularIntegrationMode AngularIntegrationMode => AngularIntegrationMode.Nonconserving;
|
||||||
|
|
||||||
|
public void Initialize(Simulation simulation)
|
||||||
|
{
|
||||||
|
//In this demo, we don't need to initialize anything.
|
||||||
|
//If you had a simulation with per body gravity stored in a CollidableProperty<T> or something similar, having the simulation provided in a callback can be helpful.
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Creates a new set of simple callbacks for the demos.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="gravity">Gravity to apply to dynamic bodies in the simulation.</param>
|
||||||
|
/// <param name="linearDamping">Fraction of dynamic body linear velocity to remove per unit of time. Values range from 0 to 1. 0 is fully undamped, while values very close to 1 will remove most velocity.</param>
|
||||||
|
/// <param name="angularDamping">Fraction of dynamic body angular velocity to remove per unit of time. Values range from 0 to 1. 0 is fully undamped, while values very close to 1 will remove most velocity.</param>
|
||||||
|
public JNPoseIntegratorCallbacks(Vector3 gravity, float linearDamping = .03f, float angularDamping = .03f) : this()
|
||||||
|
{
|
||||||
|
Gravity = gravity;
|
||||||
|
LinearDamping = linearDamping;
|
||||||
|
AngularDamping = angularDamping;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void PrepareForIntegration(float dt)
|
||||||
|
{
|
||||||
|
//No reason to recalculate gravity * dt for every body; just cache it ahead of time.
|
||||||
|
gravityDt = Gravity * dt;
|
||||||
|
//Since these callbacks don't use per-body damping values, we can precalculate everything.
|
||||||
|
linearDampingDt = MathF.Pow(MathHelper.Clamp(1 - LinearDamping, 0, 1), dt);
|
||||||
|
angularDampingDt = MathF.Pow(MathHelper.Clamp(1 - AngularDamping, 0, 1), dt);
|
||||||
|
}
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
public void IntegrateVelocity(int bodyIndex, in RigidPose pose, in BodyInertia localInertia, int workerIndex, ref BodyVelocity velocity)
|
||||||
|
{
|
||||||
|
//Note that we avoid accelerating kinematics. Kinematics are any body with an inverse mass of zero (so a mass of ~infinity). No force can move them.
|
||||||
|
if (localInertia.InverseMass > 0)
|
||||||
|
{
|
||||||
|
velocity.Linear = (velocity.Linear + gravityDt) * linearDampingDt;
|
||||||
|
velocity.Angular = velocity.Angular * angularDampingDt;
|
||||||
|
}
|
||||||
|
//Implementation sidenote: Why aren't kinematics all bundled together separately from dynamics to avoid this per-body condition?
|
||||||
|
//Because kinematics can have a velocity- that is what distinguishes them from a static object. The solver must read velocities of all bodies involved in a constraint.
|
||||||
|
//Under ideal conditions, those bodies will be near in memory to increase the chances of a cache hit. If kinematics are separately bundled, the the number of cache
|
||||||
|
//misses necessarily increases. Slowing down the solver in order to speed up the pose integrator is a really, really bad trade, especially when the benefit is a few ALU ops.
|
||||||
|
|
||||||
|
//Note that you CAN technically modify the pose in IntegrateVelocity by directly accessing it through the Simulation.Bodies.ActiveSet.Poses, it just requires a little care and isn't directly exposed.
|
||||||
|
//If the PositionFirstTimestepper is being used, then the pose integrator has already integrated the pose.
|
||||||
|
//If the PositionLastTimestepper or SubsteppingTimestepper are in use, the pose has not yet been integrated.
|
||||||
|
//If your pose modification depends on the order of integration, you'll want to take this into account.
|
||||||
|
|
||||||
|
//This is also a handy spot to implement things like position dependent gravity or per-body damping.
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public struct JNNarrowPhaseCallbacks : INarrowPhaseCallbacks
|
||||||
|
{
|
||||||
|
public SpringSettings ContactSpringiness;
|
||||||
|
|
||||||
|
public void Initialize(Simulation simulation)
|
||||||
|
{
|
||||||
|
//Use a default if the springiness value wasn't initialized.
|
||||||
|
if (ContactSpringiness.AngularFrequency == 0 && ContactSpringiness.TwiceDampingRatio == 0)
|
||||||
|
ContactSpringiness = new SpringSettings(30, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
public bool AllowContactGeneration(int workerIndex, CollidableReference a, CollidableReference b)
|
||||||
|
{
|
||||||
|
//While the engine won't even try creating pairs between statics at all, it will ask about kinematic-kinematic pairs.
|
||||||
|
//Those pairs cannot emit constraints since both involved bodies have infinite inertia. Since most of the demos don't need
|
||||||
|
//to collect information about kinematic-kinematic pairs, we'll require that at least one of the bodies needs to be dynamic.
|
||||||
|
return a.Mobility == CollidableMobility.Dynamic || b.Mobility == CollidableMobility.Dynamic;
|
||||||
|
}
|
||||||
|
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
public bool AllowContactGeneration(int workerIndex, CollidablePair pair, int childIndexA, int childIndexB)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
public bool ConfigureContactManifold<TManifold>(int workerIndex, CollidablePair pair,
|
||||||
|
ref TManifold manifold, out PairMaterialProperties pairMaterial)
|
||||||
|
where TManifold : struct, IContactManifold<TManifold>
|
||||||
|
{
|
||||||
|
pairMaterial.FrictionCoefficient = 1f;
|
||||||
|
pairMaterial.MaximumRecoveryVelocity = 2f;
|
||||||
|
pairMaterial.SpringSettings = ContactSpringiness;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||||
|
public bool ConfigureContactManifold(int workerIndex, CollidablePair pair, int childIndexA, int childIndexB,
|
||||||
|
ref ConvexContactManifold manifold)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Dispose()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 12d59c2959b546898001fd2ee9c2533d
|
||||||
|
timeCreated: 1706683943
|
@ -80,7 +80,7 @@ namespace Plugins.JNGame.Sync.Frame
|
|||||||
|
|
||||||
public override Task OnInit()
|
public override Task OnInit()
|
||||||
{
|
{
|
||||||
Physics.simulationMode = SimulationMode.Script;
|
Physics.autoSimulation = false;
|
||||||
Physics.autoSyncTransforms = false;
|
Physics.autoSyncTransforms = false;
|
||||||
this.OnReset();
|
this.OnReset();
|
||||||
return Task.CompletedTask;
|
return Task.CompletedTask;
|
||||||
@ -110,6 +110,7 @@ namespace Plugins.JNGame.Sync.Frame
|
|||||||
this._nLocalRunFrame = 0;
|
this._nLocalRunFrame = 0;
|
||||||
this.dtTotal = 0;
|
this.dtTotal = 0;
|
||||||
this.dtInputTotal = 0;
|
this.dtInputTotal = 0;
|
||||||
|
this._isRequestServerData = false;
|
||||||
|
|
||||||
Physics.SyncTransforms();
|
Physics.SyncTransforms();
|
||||||
EventDispatcher.Event.Dispatch(JNSyncFrameEvent.CREATE);
|
EventDispatcher.Event.Dispatch(JNSyncFrameEvent.CREATE);
|
||||||
|
8
JNFrame/Assets/Plugins/JNGame/UI.meta
Normal file
8
JNFrame/Assets/Plugins/JNGame/UI.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: be2eae9924066194f8328fd4f593a63a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -42,7 +42,7 @@ namespace Plugins.JNGame.Util
|
|||||||
|
|
||||||
public async UniTask<T> Post<T,TA>(string url,TA data)
|
public async UniTask<T> Post<T,TA>(string url,TA data)
|
||||||
{
|
{
|
||||||
var request = UnityWebRequest.PostWwwForm($"{this._config.BaseURL}/{url}",JsonConvert.SerializeObject(data));
|
var request = UnityWebRequest.Post($"{this._config.BaseURL}/{url}",JsonConvert.SerializeObject(data));
|
||||||
return JsonConvert.DeserializeObject<T>((await request.SendWebRequest()).downloadHandler.text);
|
return JsonConvert.DeserializeObject<T>((await request.SendWebRequest()).downloadHandler.text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
1
JNFrame/Assets/Resources/PerformanceTestRunInfo.json
Normal file
1
JNFrame/Assets/Resources/PerformanceTestRunInfo.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"TestSuite":"","Date":0,"Player":{"Development":false,"ScreenWidth":0,"ScreenHeight":0,"ScreenRefreshRate":0,"Fullscreen":false,"Vsync":0,"AntiAliasing":0,"Batchmode":false,"RenderThreadingMode":"MultiThreaded","GpuSkinning":true,"Platform":"","ColorSpace":"","AnisotropicFiltering":"","BlendWeights":"","GraphicsApi":"","ScriptingBackend":"Mono2x","AndroidTargetSdkVersion":"AndroidApiLevelAuto","AndroidBuildSystem":"Gradle","BuildTarget":"Android","StereoRenderingPath":"MultiPass"},"Hardware":{"OperatingSystem":"","DeviceModel":"","DeviceName":"","ProcessorType":"","ProcessorCount":0,"GraphicsDeviceName":"","SystemMemorySizeMB":0},"Editor":{"Version":"2022.3.16f1c1","Branch":"2022.3/china_unity/release","Changeset":"2f3f1b3bde89","Date":1706067553},"Dependencies":["com.unity.ai.navigation@1.1.5","com.unity.collab-proxy@2.2.0","com.unity.feature.development@1.0.1","com.unity.ide.rider@3.0.27","com.unity.ide.visualstudio@2.0.22","com.unity.ide.vscode@1.2.5","com.unity.physics@1.0.16","com.unity.test-framework@1.1.33","com.unity.textmeshpro@3.0.6","com.unity.timeline@1.7.6","com.unity.ugui@1.0.0","com.unity.visualscripting@1.9.1","com.unity.modules.ai@1.0.0","com.unity.modules.androidjni@1.0.0","com.unity.modules.animation@1.0.0","com.unity.modules.assetbundle@1.0.0","com.unity.modules.audio@1.0.0","com.unity.modules.cloth@1.0.0","com.unity.modules.director@1.0.0","com.unity.modules.imageconversion@1.0.0","com.unity.modules.imgui@1.0.0","com.unity.modules.jsonserialize@1.0.0","com.unity.modules.particlesystem@1.0.0","com.unity.modules.screencapture@1.0.0","com.unity.modules.terrain@1.0.0","com.unity.modules.terrainphysics@1.0.0","com.unity.modules.tilemap@1.0.0","com.unity.modules.ui@1.0.0","com.unity.modules.uielements@1.0.0","com.unity.modules.umbra@1.0.0","com.unity.modules.unityanalytics@1.0.0","com.unity.modules.unitywebrequest@1.0.0","com.unity.modules.unitywebrequestassetbundle@1.0.0","com.unity.modules.unitywebrequestaudio@1.0.0","com.unity.modules.unitywebrequesttexture@1.0.0","com.unity.modules.unitywebrequestwww@1.0.0","com.unity.modules.vehicles@1.0.0","com.unity.modules.video@1.0.0","com.unity.modules.vr@1.0.0","com.unity.modules.wind@1.0.0","com.unity.modules.xr@1.0.0","com.unity.modules.physics@1.0.0","com.unity.modules.subsystems@1.0.0","com.unity.modules.physics2d@1.0.0","com.unity.ext.nunit@1.0.6","com.unity.burst@1.8.11","com.unity.collections@2.1.4","com.unity.entities@1.0.16","com.unity.mathematics@1.2.6","com.unity.editorcoroutines@1.0.0","com.unity.performance.profile-analyzer@1.2.2","com.unity.testtools.codecoverage@1.2.4","com.unity.serialization@3.1.1","com.unity.test-framework.performance@3.0.2","com.unity.nuget.mono-cecil@1.11.4","com.unity.scriptablebuildpipeline@1.21.21","com.unity.profiling.core@1.0.2","com.unity.settings-manager@2.0.1"],"Results":[]}
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f7ec362023f3eff42a3eaff69a58fc26
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
1
JNFrame/Assets/Resources/PerformanceTestRunSettings.json
Normal file
1
JNFrame/Assets/Resources/PerformanceTestRunSettings.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"MeasurementCount":-1}
|
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 27541f44f94c2bd4a93d3938c97216ff
|
||||||
|
TextScriptImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -11,8 +11,7 @@ GameObject:
|
|||||||
- component: {fileID: 664841175096201691}
|
- component: {fileID: 664841175096201691}
|
||||||
- component: {fileID: 664841175096201690}
|
- component: {fileID: 664841175096201690}
|
||||||
- component: {fileID: 664841175096201689}
|
- component: {fileID: 664841175096201689}
|
||||||
- component: {fileID: 574656058432384995}
|
- component: {fileID: 923251041587902903}
|
||||||
- component: {fileID: 2113456302054558747}
|
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Sphere 1
|
m_Name: Sphere 1
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -85,51 +84,17 @@ MeshRenderer:
|
|||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
--- !u!135 &574656058432384995
|
--- !u!114 &923251041587902903
|
||||||
SphereCollider:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 664841175096201695}
|
m_GameObject: {fileID: 664841175096201695}
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 3
|
m_EditorHideFlags: 0
|
||||||
m_Radius: 0.5
|
m_Script: {fileID: 11500000, guid: 98c11bfd0d424f98a6634403fca61c34, type: 3}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Name:
|
||||||
--- !u!54 &2113456302054558747
|
m_EditorClassIdentifier:
|
||||||
Rigidbody:
|
worldIndex: 0
|
||||||
m_ObjectHideFlags: 0
|
isStatic: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 664841175096201695}
|
|
||||||
serializedVersion: 4
|
|
||||||
m_Mass: 1
|
|
||||||
m_Drag: 0
|
|
||||||
m_AngularDrag: 0.05
|
|
||||||
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
|
||||||
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
|
||||||
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ImplicitCom: 1
|
|
||||||
m_ImplicitTensor: 1
|
|
||||||
m_UseGravity: 1
|
|
||||||
m_IsKinematic: 0
|
|
||||||
m_Interpolate: 0
|
|
||||||
m_Constraints: 0
|
|
||||||
m_CollisionDetection: 0
|
|
||||||
|
@ -11,8 +11,7 @@ GameObject:
|
|||||||
- component: {fileID: 664841175096201691}
|
- component: {fileID: 664841175096201691}
|
||||||
- component: {fileID: 664841175096201690}
|
- component: {fileID: 664841175096201690}
|
||||||
- component: {fileID: 664841175096201689}
|
- component: {fileID: 664841175096201689}
|
||||||
- component: {fileID: -289448904210163489}
|
- component: {fileID: 1943898370675082398}
|
||||||
- component: {fileID: -1515477822795860743}
|
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Sphere 2
|
m_Name: Sphere 2
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -85,51 +84,17 @@ MeshRenderer:
|
|||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
--- !u!54 &-289448904210163489
|
--- !u!114 &1943898370675082398
|
||||||
Rigidbody:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 664841175096201695}
|
m_GameObject: {fileID: 664841175096201695}
|
||||||
serializedVersion: 4
|
|
||||||
m_Mass: 1
|
|
||||||
m_Drag: 0
|
|
||||||
m_AngularDrag: 0.05
|
|
||||||
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
|
||||||
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
|
||||||
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ImplicitCom: 1
|
|
||||||
m_ImplicitTensor: 1
|
|
||||||
m_UseGravity: 1
|
|
||||||
m_IsKinematic: 0
|
|
||||||
m_Interpolate: 0
|
|
||||||
m_Constraints: 0
|
|
||||||
m_CollisionDetection: 0
|
|
||||||
--- !u!135 &-1515477822795860743
|
|
||||||
SphereCollider:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 664841175096201695}
|
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 3
|
m_EditorHideFlags: 0
|
||||||
m_Radius: 0.5
|
m_Script: {fileID: 11500000, guid: 98c11bfd0d424f98a6634403fca61c34, type: 3}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
worldIndex: 0
|
||||||
|
isStatic: 0
|
||||||
|
@ -11,8 +11,7 @@ GameObject:
|
|||||||
- component: {fileID: 664841175096201691}
|
- component: {fileID: 664841175096201691}
|
||||||
- component: {fileID: 664841175096201690}
|
- component: {fileID: 664841175096201690}
|
||||||
- component: {fileID: 664841175096201689}
|
- component: {fileID: 664841175096201689}
|
||||||
- component: {fileID: 5459639529223246069}
|
- component: {fileID: -4506523599465892499}
|
||||||
- component: {fileID: 6482499274382216103}
|
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Sphere
|
m_Name: Sphere
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -85,51 +84,17 @@ MeshRenderer:
|
|||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
m_AdditionalVertexStreams: {fileID: 0}
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
--- !u!135 &5459639529223246069
|
--- !u!114 &-4506523599465892499
|
||||||
SphereCollider:
|
MonoBehaviour:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
m_PrefabInstance: {fileID: 0}
|
m_PrefabInstance: {fileID: 0}
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 664841175096201695}
|
m_GameObject: {fileID: 664841175096201695}
|
||||||
m_Material: {fileID: 0}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_LayerOverridePriority: 0
|
|
||||||
m_IsTrigger: 0
|
|
||||||
m_ProvidesContacts: 0
|
|
||||||
m_Enabled: 1
|
m_Enabled: 1
|
||||||
serializedVersion: 3
|
m_EditorHideFlags: 0
|
||||||
m_Radius: 0.5
|
m_Script: {fileID: 11500000, guid: 98c11bfd0d424f98a6634403fca61c34, type: 3}
|
||||||
m_Center: {x: 0, y: 0, z: 0}
|
m_Name:
|
||||||
--- !u!54 &6482499274382216103
|
m_EditorClassIdentifier:
|
||||||
Rigidbody:
|
worldIndex: 0
|
||||||
m_ObjectHideFlags: 0
|
isStatic: 0
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 664841175096201695}
|
|
||||||
serializedVersion: 4
|
|
||||||
m_Mass: 1
|
|
||||||
m_Drag: 0
|
|
||||||
m_AngularDrag: 0.05
|
|
||||||
m_CenterOfMass: {x: 0, y: 0, z: 0}
|
|
||||||
m_InertiaTensor: {x: 1, y: 1, z: 1}
|
|
||||||
m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_IncludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ExcludeLayers:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 0
|
|
||||||
m_ImplicitCom: 1
|
|
||||||
m_ImplicitTensor: 1
|
|
||||||
m_UseGravity: 1
|
|
||||||
m_IsKinematic: 0
|
|
||||||
m_Interpolate: 0
|
|
||||||
m_Constraints: 0
|
|
||||||
m_CollisionDetection: 0
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 19f77faebdc567b488940d510d374f17
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 63defbb40447be042a23a204dbabfea1
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 05b2d911c4f5b3942a29cd70d1ac526b
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 924801193ae5c634d814f3e2efdf5e5c
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,3 +0,0 @@
|
|||||||
using System.Runtime.CompilerServices;
|
|
||||||
|
|
||||||
[assembly: InternalsVisibleTo("Unity.Physics.Custom.EditModeTests")]
|
|
@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 016d8a3094fcbdf44961b10be9ac5c56
|
|
||||||
timeCreated: 1680116734
|
|
@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: df54d2bd08525d5449ae01cf06c0117f
|
|
||||||
timeCreated: 1678291379
|
|
@ -1,107 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Unity.Mathematics;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEditor.IMGUI.Controls;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Unity.Physics.Editor
|
|
||||||
{
|
|
||||||
class BeveledBoxBoundsHandle : BoxBoundsHandle
|
|
||||||
{
|
|
||||||
public float bevelRadius
|
|
||||||
{
|
|
||||||
get => math.min(m_BevelRadius, math.cmin(GetSize()) * 0.5f);
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (!m_IsDragging)
|
|
||||||
m_BevelRadius = math.max(0f, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
float m_BevelRadius = ConvexHullGenerationParameters.Default.BevelRadius;
|
|
||||||
bool m_IsDragging = false;
|
|
||||||
|
|
||||||
static PhysicsBoundsHandleUtility.Corner[] s_Corners = new PhysicsBoundsHandleUtility.Corner[8];
|
|
||||||
|
|
||||||
public new void DrawHandle()
|
|
||||||
{
|
|
||||||
int prevHotControl = GUIUtility.hotControl;
|
|
||||||
if (prevHotControl == 0)
|
|
||||||
m_IsDragging = false;
|
|
||||||
base.DrawHandle();
|
|
||||||
int currHotcontrol = GUIUtility.hotControl;
|
|
||||||
if (currHotcontrol != prevHotControl)
|
|
||||||
m_IsDragging = currHotcontrol != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void DrawWireframe()
|
|
||||||
{
|
|
||||||
if (this.bevelRadius <= 0f)
|
|
||||||
{
|
|
||||||
base.DrawWireframe();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var cameraPosition = float3.zero;
|
|
||||||
var cameraForward = new float3 { z = 1f };
|
|
||||||
if (Camera.current != null)
|
|
||||||
{
|
|
||||||
cameraPosition = Camera.current.transform.position;
|
|
||||||
cameraForward = Camera.current.transform.forward;
|
|
||||||
}
|
|
||||||
|
|
||||||
var bounds = new Bounds(this.center, this.size);
|
|
||||||
bool isCameraInsideBox = Camera.current != null && bounds.Contains(Handles.inverseMatrix.MultiplyPoint(cameraPosition));
|
|
||||||
var bevelRadius = this.bevelRadius;
|
|
||||||
var origin = (float3)this.center;
|
|
||||||
var size = (float3)this.size;
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, 1f), bevelRadius, 0, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(-1f, 1f, 1f), bevelRadius, 0, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, 1f), bevelRadius, 1, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, -1f, 1f), bevelRadius, 1, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, 1f), bevelRadius, 2, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, -1f), bevelRadius, 2, axes, isCameraInsideBox);
|
|
||||||
|
|
||||||
var corner = 0.5f * size - new float3(1f) * bevelRadius;
|
|
||||||
var axisx = new float3(1f, 0f, 0f);
|
|
||||||
var axisy = new float3(0f, 1f, 0f);
|
|
||||||
var axisz = new float3(0f, 0f, 1f);
|
|
||||||
|
|
||||||
// Since the geometry is transformed by Handles.matrix during rendering, we transform the camera position
|
|
||||||
// by the inverse matrix so that the two-shaded wireframe will have the proper orientation.
|
|
||||||
var invMatrix = Handles.inverseMatrix;
|
|
||||||
cameraPosition = invMatrix.MultiplyPoint(cameraPosition);
|
|
||||||
cameraForward = invMatrix.MultiplyVector(cameraForward);
|
|
||||||
var cameraOrtho = Camera.current == null || Camera.current.orthographic;
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, 1f, -1f), quaternion.LookRotation(-axisz, axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[0]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, 1f, 1f), quaternion.LookRotation(-axisx, axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[1]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, 1f, 1f), quaternion.LookRotation(axisz, axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[2]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, 1f, -1f), quaternion.LookRotation(axisx, axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[3]);
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, -1f, -1f), quaternion.LookRotation(-axisx, -axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[4]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, -1f, 1f), quaternion.LookRotation(axisz, -axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[5]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, -1f, 1f), quaternion.LookRotation(axisx, -axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[6]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, -1f, -1f), quaternion.LookRotation(-axisz, -axisy), cameraPosition, cameraForward, cameraOrtho, bevelRadius, out s_Corners[7]);
|
|
||||||
|
|
||||||
for (int i = 0; i < s_Corners.Length; i++)
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[i], true);
|
|
||||||
|
|
||||||
// Draw the horizon edges between the corners
|
|
||||||
for (int upA = 3, upB = 0; upB < 4; upA = upB, upB++)
|
|
||||||
{
|
|
||||||
int dnA = upA + 4;
|
|
||||||
int dnB = upB + 4;
|
|
||||||
|
|
||||||
if (s_Corners[upA].splitAxis[0].z && s_Corners[upB].splitAxis[1].x) Handles.DrawLine(s_Corners[upA].points[0], s_Corners[upB].points[1]);
|
|
||||||
if (s_Corners[upA].splitAxis[1].z && s_Corners[upB].splitAxis[0].x) Handles.DrawLine(s_Corners[upA].points[1], s_Corners[upB].points[0]);
|
|
||||||
|
|
||||||
if (s_Corners[dnA].splitAxis[0].x && s_Corners[dnB].splitAxis[1].z) Handles.DrawLine(s_Corners[dnA].points[0], s_Corners[dnB].points[1]);
|
|
||||||
if (s_Corners[dnA].splitAxis[1].x && s_Corners[dnB].splitAxis[0].z) Handles.DrawLine(s_Corners[dnA].points[1], s_Corners[dnB].points[0]);
|
|
||||||
|
|
||||||
if (s_Corners[dnA].splitAxis[0].y && s_Corners[upA].splitAxis[1].y) Handles.DrawLine(s_Corners[dnA].points[0], s_Corners[upA].points[1]);
|
|
||||||
if (s_Corners[dnA].splitAxis[1].y && s_Corners[upA].splitAxis[0].y) Handles.DrawLine(s_Corners[dnA].points[1], s_Corners[upA].points[0]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,350 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Unity.Mathematics;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEditor.IMGUI.Controls;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Unity.Physics.Editor
|
|
||||||
{
|
|
||||||
class BeveledCylinderBoundsHandle : PrimitiveBoundsHandle
|
|
||||||
{
|
|
||||||
public float bevelRadius
|
|
||||||
{
|
|
||||||
get => math.min(m_BevelRadius, math.cmin(GetSize()) * 0.5f);
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (!m_IsDragging)
|
|
||||||
m_BevelRadius = math.max(0f, value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
float m_BevelRadius = ConvexHullGenerationParameters.Default.BevelRadius;
|
|
||||||
|
|
||||||
bool m_IsDragging = false;
|
|
||||||
|
|
||||||
public float height
|
|
||||||
{
|
|
||||||
get => GetSize().z;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
var size = GetSize();
|
|
||||||
size.z = math.max(0f, value);
|
|
||||||
SetSize(size);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public float radius
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
var size = (float3)GetSize();
|
|
||||||
var diameter = 0f;
|
|
||||||
// only consider size values on enabled axes
|
|
||||||
if (IsAxisEnabled(0)) diameter = math.max(diameter, math.abs(size.x));
|
|
||||||
else if (IsAxisEnabled(1)) diameter = math.max(diameter, math.abs(size.y));
|
|
||||||
return diameter * 0.5f;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
var size = (float3)GetSize();
|
|
||||||
size.x = size.y = math.max(0f, value * 2.0f);
|
|
||||||
SetSize(size);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int sideCount
|
|
||||||
{
|
|
||||||
get => m_SideCount;
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (value == m_SideCount)
|
|
||||||
return;
|
|
||||||
|
|
||||||
m_SideCount = value;
|
|
||||||
|
|
||||||
Array.Resize(ref m_TopPoints, m_SideCount * 2);
|
|
||||||
Array.Resize(ref m_BottomPoints, m_SideCount * 2);
|
|
||||||
Array.Resize(ref m_Corners, m_SideCount * 2);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
int m_SideCount;
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.Corner[] m_Corners = Array.Empty<PhysicsBoundsHandleUtility.Corner>();
|
|
||||||
Vector3[] m_TopPoints = Array.Empty<Vector3>();
|
|
||||||
Vector3[] m_BottomPoints = Array.Empty<Vector3>();
|
|
||||||
|
|
||||||
public new void DrawHandle()
|
|
||||||
{
|
|
||||||
int prevHotControl = GUIUtility.hotControl;
|
|
||||||
if (prevHotControl == 0)
|
|
||||||
m_IsDragging = false;
|
|
||||||
base.DrawHandle();
|
|
||||||
int currHotcontrol = GUIUtility.hotControl;
|
|
||||||
if (currHotcontrol != prevHotControl)
|
|
||||||
m_IsDragging = currHotcontrol != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void DrawWireframe()
|
|
||||||
{
|
|
||||||
using (new Handles.DrawingScope(Handles.matrix))
|
|
||||||
{
|
|
||||||
var backfacedColor = PhysicsBoundsHandleUtility.GetStateColor(true);
|
|
||||||
var frontfacedColor = Handles.color;
|
|
||||||
bool isCameraInsideBox = false;
|
|
||||||
|
|
||||||
var radius = this.radius;
|
|
||||||
var bevelRadius = this.bevelRadius;
|
|
||||||
|
|
||||||
var halfHeight = new float3(0f, 0f, height * 0.5f);
|
|
||||||
var ctr = (float3)center;
|
|
||||||
var halfAngleStep = math.PI / m_SideCount;
|
|
||||||
var angleStep = 2f * halfAngleStep;
|
|
||||||
const float kHalfPI = (math.PI * 0.5f);
|
|
||||||
|
|
||||||
var bottom = ctr + halfHeight + new float3 { z = bevelRadius };
|
|
||||||
var top = ctr - halfHeight - new float3 { z = bevelRadius };
|
|
||||||
var tangent = new float3(1, 0, 0);
|
|
||||||
var binormal = new float3(0, 1, 0);
|
|
||||||
var topBackFaced = PhysicsBoundsHandleUtility.IsBackfaced(top, -tangent, binormal, axes, isCameraInsideBox);
|
|
||||||
var bottomBackFaced = PhysicsBoundsHandleUtility.IsBackfaced(bottom, tangent, binormal, axes, isCameraInsideBox);
|
|
||||||
|
|
||||||
var cameraCenter = float3.zero;
|
|
||||||
var cameraForward = new float3 { z = 1f };
|
|
||||||
if (Camera.current != null)
|
|
||||||
{
|
|
||||||
cameraCenter = Camera.current.transform.position;
|
|
||||||
cameraForward = Camera.current.transform.forward;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Since the geometry is transformed by Handles.matrix during rendering, we transform the camera position
|
|
||||||
// by the inverse matrix so that the two-shaded wireframe will have the proper orientation.
|
|
||||||
var invMatrix = Handles.inverseMatrix;
|
|
||||||
cameraCenter = invMatrix.MultiplyPoint(cameraCenter);
|
|
||||||
cameraForward = invMatrix.MultiplyVector(cameraForward);
|
|
||||||
var cameraOrtho = Camera.current != null && Camera.current.orthographic;
|
|
||||||
|
|
||||||
var noSides = (radius - bevelRadius) < PhysicsBoundsHandleUtility.kDistanceEpsilon;
|
|
||||||
var up = new float3(0, 0, -1f);
|
|
||||||
|
|
||||||
var t = ((m_SideCount - 2) * angleStep);
|
|
||||||
var xyAngle0 = new float3(math.cos(t), math.sin(t), 0f);
|
|
||||||
|
|
||||||
t = (m_SideCount - 1) * angleStep;
|
|
||||||
var xyAngle1 = new float3(math.cos(t), math.sin(t), 0f);
|
|
||||||
var sideways1 = new float3(math.cos(t + kHalfPI - halfAngleStep), math.sin(t + kHalfPI - halfAngleStep), 0f);
|
|
||||||
var direction1 = new float3(math.cos(t + halfAngleStep), math.sin(t + halfAngleStep), 0f);
|
|
||||||
var bevelGreaterThanZero = bevelRadius > 0f;
|
|
||||||
var bevelLessThanCylinderRadius = bevelRadius < radius;
|
|
||||||
for (var i = 0; i < m_SideCount; ++i)
|
|
||||||
{
|
|
||||||
t = i * angleStep;
|
|
||||||
var xyAngle2 = new float3(math.cos(t), math.sin(t), 0f);
|
|
||||||
var sideways2 = new float3(math.cos(t + kHalfPI - halfAngleStep), math.sin(t + kHalfPI - halfAngleStep), 0f);
|
|
||||||
var direction2 = new float3(math.cos(t + halfAngleStep), math.sin(t + halfAngleStep), 0f);
|
|
||||||
|
|
||||||
var offset0 = xyAngle0 * (radius - bevelRadius);
|
|
||||||
var offset1 = xyAngle1 * (radius - bevelRadius);
|
|
||||||
var offset2 = xyAngle2 * (radius - bevelRadius);
|
|
||||||
|
|
||||||
var top1 = ctr + offset1 - (halfHeight - new float3 { z = bevelRadius });
|
|
||||||
var bottom1 = ctr + offset1 + (halfHeight - new float3 { z = bevelRadius });
|
|
||||||
|
|
||||||
var top2 = ctr + offset2 - (halfHeight - new float3 { z = bevelRadius });
|
|
||||||
var bottom2 = ctr + offset2 + (halfHeight - new float3 { z = bevelRadius });
|
|
||||||
|
|
||||||
var startOffset = direction1 * bevelRadius;
|
|
||||||
|
|
||||||
if (bevelGreaterThanZero)
|
|
||||||
{
|
|
||||||
var upOffset = up * bevelRadius;
|
|
||||||
|
|
||||||
// top/bottom caps
|
|
||||||
if (bevelLessThanCylinderRadius)
|
|
||||||
{
|
|
||||||
Handles.color = topBackFaced ? backfacedColor : frontfacedColor;
|
|
||||||
Handles.DrawLine(top1 + upOffset, top2 + upOffset);
|
|
||||||
|
|
||||||
Handles.color = bottomBackFaced ? backfacedColor : frontfacedColor;
|
|
||||||
Handles.DrawLine(bottom1 - upOffset, bottom2 - upOffset);
|
|
||||||
}
|
|
||||||
|
|
||||||
var currSideMidPoint = ctr + ((top1 + bottom1 + top2 + bottom2) * 0.25f) + startOffset;
|
|
||||||
var currSideBackFaced = PhysicsBoundsHandleUtility.IsBackfaced(currSideMidPoint, up, sideways2, axes, isCameraInsideBox);
|
|
||||||
|
|
||||||
Handles.color = currSideBackFaced ? backfacedColor : frontfacedColor;
|
|
||||||
if (!noSides)
|
|
||||||
{
|
|
||||||
// Square side of bevelled cylinder
|
|
||||||
Handles.DrawLine(top2 + startOffset, bottom2 + startOffset);
|
|
||||||
Handles.DrawLine(bottom2 + startOffset, bottom1 + startOffset);
|
|
||||||
Handles.DrawLine(bottom1 + startOffset, top1 + startOffset);
|
|
||||||
Handles.DrawLine(top1 + startOffset, top2 + startOffset);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Square side of bevelled cylinder, when squashed to a single line
|
|
||||||
Handles.DrawLine(top2 + startOffset, bottom2 + startOffset);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var top0 = ctr + offset0 - (halfHeight - new float3 { z = bevelRadius });
|
|
||||||
var bottom0 = ctr + offset0 + (halfHeight - new float3 { z = bevelRadius });
|
|
||||||
|
|
||||||
var prevMidPoint = ctr + ((top0 + top1 + bottom0 + bottom1) * 0.25f) + startOffset;
|
|
||||||
var prevSideBackFaced = PhysicsBoundsHandleUtility.IsBackfaced(prevMidPoint, up, sideways1, axes, isCameraInsideBox);
|
|
||||||
|
|
||||||
var currMidPoint = ctr + ((top1 + top2 + bottom1 + bottom2) * 0.25f) + startOffset;
|
|
||||||
var currSideBackFaced = PhysicsBoundsHandleUtility.IsBackfaced(currMidPoint, up, sideways2, axes, isCameraInsideBox);
|
|
||||||
|
|
||||||
// Square side of bevelled cylinder
|
|
||||||
Handles.color = (currSideBackFaced && prevSideBackFaced) ? backfacedColor : frontfacedColor;
|
|
||||||
Handles.DrawLine(bottom1 + startOffset, top1 + startOffset);
|
|
||||||
|
|
||||||
Handles.color = (currSideBackFaced && topBackFaced) ? backfacedColor : frontfacedColor;
|
|
||||||
Handles.DrawLine(top1 + startOffset, top2 + startOffset);
|
|
||||||
|
|
||||||
Handles.color = (currSideBackFaced && bottomBackFaced) ? backfacedColor : frontfacedColor;
|
|
||||||
Handles.DrawLine(bottom2 + startOffset, bottom1 + startOffset);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bevelGreaterThanZero)
|
|
||||||
{
|
|
||||||
Handles.color = frontfacedColor;
|
|
||||||
|
|
||||||
var cornerIndex0 = i;
|
|
||||||
var cornerIndex1 = i + m_SideCount;
|
|
||||||
{
|
|
||||||
var orientation = quaternion.LookRotation(xyAngle2, up);
|
|
||||||
var cornerNormal = math.normalize(math.mul(orientation, new float3(0f, 1f, 1f)));
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(top2,
|
|
||||||
new float3x3(direction1, up, direction2),
|
|
||||||
cornerNormal, cameraCenter, cameraForward, cameraOrtho,
|
|
||||||
bevelRadius, out m_Corners[cornerIndex0]);
|
|
||||||
}
|
|
||||||
{
|
|
||||||
var orientation = quaternion.LookRotation(xyAngle2, -up);
|
|
||||||
var cornerNormal = math.normalize(math.mul(orientation, new float3(0f, 1f, 1f)));
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(bottom2,
|
|
||||||
new float3x3(direction2, -up, direction1),
|
|
||||||
cornerNormal, cameraCenter, cameraForward, cameraOrtho,
|
|
||||||
bevelRadius, out m_Corners[cornerIndex1]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
direction1 = direction2;
|
|
||||||
sideways1 = sideways2;
|
|
||||||
xyAngle0 = xyAngle1;
|
|
||||||
xyAngle1 = xyAngle2;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (bevelGreaterThanZero)
|
|
||||||
{
|
|
||||||
Handles.color = frontfacedColor;
|
|
||||||
for (int a = m_SideCount - 1, b = 0; b < m_SideCount; a = b, ++b)
|
|
||||||
{
|
|
||||||
var up0 = a;
|
|
||||||
var dn0 = a + m_SideCount;
|
|
||||||
|
|
||||||
var up1 = b;
|
|
||||||
var dn1 = b + m_SideCount;
|
|
||||||
|
|
||||||
// Side horizon on vertical curved edge
|
|
||||||
if (m_Corners[up1].splitCount > 1 &&
|
|
||||||
m_Corners[dn1].splitCount > 1)
|
|
||||||
{
|
|
||||||
if ((m_Corners[up1].splitAxis[0].y || m_Corners[up1].splitAxis[1].y) &&
|
|
||||||
(m_Corners[dn1].splitAxis[0].y || m_Corners[dn1].splitAxis[1].y))
|
|
||||||
{
|
|
||||||
var point0 = m_Corners[up1].splitAxis[0].y ? m_Corners[up1].points[0] : m_Corners[up1].points[1];
|
|
||||||
var point1 = m_Corners[dn1].splitAxis[0].y ? m_Corners[dn1].points[0] : m_Corners[dn1].points[1];
|
|
||||||
Handles.DrawLine(point0, point1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Top horizon on horizontal curved edge
|
|
||||||
if (m_Corners[up0].splitCount > 1 &&
|
|
||||||
m_Corners[up1].splitCount > 1)
|
|
||||||
{
|
|
||||||
if ((m_Corners[up0].splitAxis[0].x || m_Corners[up0].splitAxis[1].x) &&
|
|
||||||
(m_Corners[up1].splitAxis[0].z || m_Corners[up1].splitAxis[1].z))
|
|
||||||
{
|
|
||||||
var point0 = m_Corners[up0].splitAxis[0].x ? m_Corners[up0].points[0] : m_Corners[up0].points[1];
|
|
||||||
var point1 = m_Corners[up1].splitAxis[0].z ? m_Corners[up1].points[0] : m_Corners[up1].points[1];
|
|
||||||
Handles.DrawLine(point0, point1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Bottom horizon on horizontal curved edge
|
|
||||||
if (m_Corners[dn0].splitCount > 1 &&
|
|
||||||
m_Corners[dn1].splitCount > 1)
|
|
||||||
{
|
|
||||||
if ((m_Corners[dn0].splitAxis[0].z || m_Corners[dn0].splitAxis[1].z) &&
|
|
||||||
(m_Corners[dn1].splitAxis[0].x || m_Corners[dn1].splitAxis[1].x))
|
|
||||||
{
|
|
||||||
var point0 = m_Corners[dn0].splitAxis[0].z ? m_Corners[dn0].points[0] : m_Corners[dn0].points[1];
|
|
||||||
var point1 = m_Corners[dn1].splitAxis[0].x ? m_Corners[dn1].points[0] : m_Corners[dn1].points[1];
|
|
||||||
Handles.DrawLine(point0, point1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (var i = 0; i < m_Corners.Length; ++i)
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(m_Corners[i], new bool3(true, true, !noSides));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override Bounds OnHandleChanged(HandleDirection handle, Bounds boundsOnClick, Bounds newBounds)
|
|
||||||
{
|
|
||||||
const int k_DirectionX = 0;
|
|
||||||
const int k_DirectionY = 1;
|
|
||||||
const int k_DirectionZ = 2;
|
|
||||||
|
|
||||||
var changedAxis = k_DirectionX;
|
|
||||||
var otherRadiusAxis = k_DirectionY;
|
|
||||||
switch (handle)
|
|
||||||
{
|
|
||||||
case HandleDirection.NegativeY:
|
|
||||||
case HandleDirection.PositiveY:
|
|
||||||
changedAxis = k_DirectionY;
|
|
||||||
otherRadiusAxis = k_DirectionX;
|
|
||||||
break;
|
|
||||||
case HandleDirection.NegativeZ:
|
|
||||||
case HandleDirection.PositiveZ:
|
|
||||||
changedAxis = k_DirectionZ;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
var upperBound = newBounds.max;
|
|
||||||
var lowerBound = newBounds.min;
|
|
||||||
|
|
||||||
var convexDiameter = 2f * bevelRadius;
|
|
||||||
|
|
||||||
// ensure changed dimension cannot be made less than convex diameter
|
|
||||||
if (upperBound[changedAxis] - lowerBound[changedAxis] < convexDiameter)
|
|
||||||
{
|
|
||||||
switch (handle)
|
|
||||||
{
|
|
||||||
case HandleDirection.PositiveX:
|
|
||||||
case HandleDirection.PositiveY:
|
|
||||||
case HandleDirection.PositiveZ:
|
|
||||||
upperBound[changedAxis] = lowerBound[changedAxis] + convexDiameter;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
lowerBound[changedAxis] = upperBound[changedAxis] - convexDiameter;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ensure radius changes uniformly
|
|
||||||
if (changedAxis != k_DirectionZ)
|
|
||||||
{
|
|
||||||
var rad = 0.5f * (upperBound[changedAxis] - lowerBound[changedAxis]);
|
|
||||||
|
|
||||||
lowerBound[otherRadiusAxis] = center[otherRadiusAxis] - rad;
|
|
||||||
upperBound[otherRadiusAxis] = center[otherRadiusAxis] + rad;
|
|
||||||
}
|
|
||||||
|
|
||||||
return new Bounds((upperBound + lowerBound) * 0.5f, upperBound - lowerBound);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4f5e502486013d44c9cc7466f6c3bcd1
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,343 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Unity.Mathematics;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEngine;
|
|
||||||
using static UnityEditor.IMGUI.Controls.PrimitiveBoundsHandle;
|
|
||||||
|
|
||||||
namespace Unity.Physics.Editor
|
|
||||||
{
|
|
||||||
static class PhysicsBoundsHandleUtility
|
|
||||||
{
|
|
||||||
internal const float kBackfaceAlphaMultiplier = 0.2f;
|
|
||||||
const float kDegreeEpsilon = 0.001f;
|
|
||||||
public const float kDistanceEpsilon = 0.0001f;
|
|
||||||
|
|
||||||
public static bool IsBackfaced(float3 localPos, float3 localTangent, float3 localBinormal, Axes axes, bool isCameraInsideBox)
|
|
||||||
{
|
|
||||||
// if inside the box then ignore back facing alpha multiplier (otherwise all handles will look disabled)
|
|
||||||
if (isCameraInsideBox || axes != Axes.All)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
// use tangent and binormal to calculate normal in case handle matrix is skewed
|
|
||||||
float3 worldTangent = math.normalize(Handles.matrix.MultiplyVector(localTangent));
|
|
||||||
float3 worldBinormal = math.normalize(Handles.matrix.MultiplyVector(localBinormal));
|
|
||||||
float3 worldDir = math.normalize(math.cross(worldTangent, worldBinormal));
|
|
||||||
|
|
||||||
// adjust color if handle is back facing
|
|
||||||
float cosV;
|
|
||||||
|
|
||||||
var currentCamera = Camera.current;
|
|
||||||
if (currentCamera != null && !currentCamera.orthographic)
|
|
||||||
{
|
|
||||||
float3 cameraPos = currentCamera.transform.position;
|
|
||||||
float3 worldPos = Handles.matrix.MultiplyPoint(localPos);
|
|
||||||
cosV = math.dot(math.normalize(cameraPos - worldPos), worldDir);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
float3 cameraForward = currentCamera == null ? Vector3.forward : currentCamera.transform.forward;
|
|
||||||
cosV = math.dot(-cameraForward, worldDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
return cosV < -0.0001f;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Color GetStateColor(bool isBackfaced)
|
|
||||||
{
|
|
||||||
float alphaMultiplier = isBackfaced ? kBackfaceAlphaMultiplier : 1f;
|
|
||||||
return Handles.color * new Color(1f, 1f, 1f, alphaMultiplier);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void AdjustMidpointHandleColor(bool isBackfaced)
|
|
||||||
{
|
|
||||||
Handles.color = GetStateColor(isBackfaced);
|
|
||||||
}
|
|
||||||
|
|
||||||
static readonly Vector3[] s_FacePoints = new Vector3[8];
|
|
||||||
static readonly Vector3[] s_LinePoints = new Vector3[2];
|
|
||||||
|
|
||||||
static readonly int[] k_NextAxis = { 1, 2, 0 };
|
|
||||||
|
|
||||||
public static void DrawFace(float3 center, float3 size, float cornerRadius, int normalAxis, Axes axes, bool isCameraInsideBox)
|
|
||||||
{
|
|
||||||
// 0 = 0 1 2
|
|
||||||
// 1 = 1 2 0
|
|
||||||
// 2 = 2 0 1
|
|
||||||
|
|
||||||
int a = normalAxis;
|
|
||||||
int b = k_NextAxis[a];
|
|
||||||
int c = k_NextAxis[b];
|
|
||||||
|
|
||||||
cornerRadius = math.abs(cornerRadius);
|
|
||||||
size *= 0.5f;
|
|
||||||
var normal = new float3 { [a] = size[a] };
|
|
||||||
var ctr = center + normal;
|
|
||||||
size -= new float3(cornerRadius);
|
|
||||||
|
|
||||||
// check if our face is a point
|
|
||||||
if (math.abs(size[c]) < kDistanceEpsilon &&
|
|
||||||
math.abs(size[b]) < kDistanceEpsilon)
|
|
||||||
return;
|
|
||||||
|
|
||||||
Vector3[] points;
|
|
||||||
// check if our face is a line or not
|
|
||||||
if (math.abs(size[c]) >= kDistanceEpsilon &&
|
|
||||||
math.abs(size[b]) >= kDistanceEpsilon)
|
|
||||||
{
|
|
||||||
var i = 0;
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = size[b], [c] = size[c] };
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = -size[b], [c] = size[c] };
|
|
||||||
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = -size[b], [c] = size[c] };
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = -size[b], [c] = -size[c] };
|
|
||||||
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = -size[b], [c] = -size[c] };
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = size[b], [c] = -size[c] };
|
|
||||||
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = size[b], [c] = -size[c] };
|
|
||||||
s_FacePoints[i++] = ctr + new float3 { [b] = size[b], [c] = size[c] };
|
|
||||||
points = s_FacePoints;
|
|
||||||
}
|
|
||||||
else if (math.abs(size[c]) >= kDistanceEpsilon)
|
|
||||||
{
|
|
||||||
var i = 0;
|
|
||||||
s_LinePoints[i++] = ctr + new float3 { [b] = size[b], [c] = size[c] };
|
|
||||||
s_LinePoints[i++] = ctr + new float3 { [b] = size[b], [c] = -size[c] };
|
|
||||||
points = s_LinePoints;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var i = 0;
|
|
||||||
s_LinePoints[i++] = ctr + new float3 { [c] = size[c], [b] = size[b] };
|
|
||||||
s_LinePoints[i++] = ctr + new float3 { [c] = size[c], [b] = -size[b] };
|
|
||||||
points = s_LinePoints;
|
|
||||||
}
|
|
||||||
|
|
||||||
float3 tangent, biNormal;
|
|
||||||
if (size[c] > 0)
|
|
||||||
{
|
|
||||||
tangent = math.cross(normal, math.normalizesafe(new float3 { [c] = size[c] }));
|
|
||||||
biNormal = math.cross(normal, tangent);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
tangent = math.cross(normal, math.normalizesafe(new float3 { [b] = size[b] }));
|
|
||||||
biNormal = math.cross(normal, tangent);
|
|
||||||
}
|
|
||||||
|
|
||||||
using (new Handles.DrawingScope(Handles.color))
|
|
||||||
{
|
|
||||||
AdjustMidpointHandleColor(IsBackfaced(ctr, tangent, biNormal, axes, isCameraInsideBox));
|
|
||||||
Handles.DrawLines(points);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public struct Corner
|
|
||||||
{
|
|
||||||
public float3 angle;
|
|
||||||
public float3x2 intersections;
|
|
||||||
public float3x2 points;
|
|
||||||
public float3x3 axes;
|
|
||||||
public float3x3 normals;
|
|
||||||
public bool3x2 splitAxis;
|
|
||||||
public int splitCount;
|
|
||||||
|
|
||||||
public float3 position;
|
|
||||||
public float radius;
|
|
||||||
public bool isBackFaced;
|
|
||||||
|
|
||||||
public float3 cameraForward;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void CalculateCornerHorizon(float3 cornerPosition, quaternion orientation, float3 cameraCenter, float3 cameraForward, bool cameraOrtho, float radius, out Corner corner)
|
|
||||||
{
|
|
||||||
var axisx = new float3(1f, 0f, 0f);
|
|
||||||
var axisy = new float3(0f, 1f, 0f);
|
|
||||||
var axisz = new float3(0f, 0f, 1f);
|
|
||||||
|
|
||||||
// a vector pointing away from the center of the corner
|
|
||||||
var cornerNormal = math.normalize(math.mul(orientation, new float3(1f, 1f, 1f)));
|
|
||||||
|
|
||||||
var axes = math.mul(new float3x3(orientation), new float3x3(axisx, axisy, axisz));
|
|
||||||
CalculateCornerHorizon(cornerPosition,
|
|
||||||
axes,
|
|
||||||
cornerNormal,
|
|
||||||
cameraCenter, cameraForward, cameraOrtho,
|
|
||||||
radius, out corner);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void CalculateCornerHorizon(float3 cornerPosition, float3x3 axes, float3 cornerNormal, float3 cameraCenter, float3 cameraForward, bool cameraOrtho, float radius, out Corner corner)
|
|
||||||
{
|
|
||||||
var cameraToCenter = cornerPosition - cameraCenter; // vector from camera to center
|
|
||||||
var sqrRadius = radius * radius;
|
|
||||||
var sqrDistCameraToCenter = math.lengthsq(cameraToCenter);
|
|
||||||
var sqrOffset = (sqrRadius * sqrRadius / sqrDistCameraToCenter); // squared distance from actual center to drawn disc center
|
|
||||||
|
|
||||||
if (!cameraOrtho)
|
|
||||||
cameraForward = cameraToCenter;
|
|
||||||
|
|
||||||
var normals = new float3x3
|
|
||||||
{
|
|
||||||
c0 = math.normalize(math.cross(axes[1], axes[2])),
|
|
||||||
c1 = math.normalize(math.cross(axes[2], axes[0])),
|
|
||||||
c2 = math.normalize(math.cross(axes[0], axes[1]))
|
|
||||||
};
|
|
||||||
|
|
||||||
corner = new Corner
|
|
||||||
{
|
|
||||||
angle = new float3(
|
|
||||||
Vector3.Angle(axes[0], axes[1]),
|
|
||||||
Vector3.Angle(axes[1], axes[2]),
|
|
||||||
Vector3.Angle(axes[2], axes[0])
|
|
||||||
),
|
|
||||||
intersections = default,
|
|
||||||
points = default,
|
|
||||||
splitAxis = default,
|
|
||||||
|
|
||||||
axes = axes,
|
|
||||||
normals = normals,
|
|
||||||
|
|
||||||
position = cornerPosition,
|
|
||||||
radius = radius,
|
|
||||||
cameraForward = cameraForward,
|
|
||||||
isBackFaced = math.dot(cornerNormal, cameraForward) > 0,
|
|
||||||
splitCount = 0
|
|
||||||
};
|
|
||||||
|
|
||||||
if (math.abs(sqrDistCameraToCenter) <= sqrRadius)
|
|
||||||
return;
|
|
||||||
|
|
||||||
for (int n = 0, sign = -1; n < 2; n++, sign += 2)
|
|
||||||
{
|
|
||||||
for (int i = 0; i < 3; i++)
|
|
||||||
{
|
|
||||||
var axis1 = normals[i] * sign;
|
|
||||||
var axis2 = axes[(i + 1) % 3] * sign;
|
|
||||||
var axis3 = axes[(i + 2) % 3] * sign;
|
|
||||||
|
|
||||||
var Q = Vector3.Angle(cameraForward, axis1);
|
|
||||||
var f = math.tan(math.radians(90 - math.min(Q, 180 - Q)));
|
|
||||||
var g = sqrOffset + f * f * sqrOffset;
|
|
||||||
if (g >= sqrRadius)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
var e = math.degrees(math.asin(math.sqrt(g) / radius));
|
|
||||||
var vectorToPointOnHorizon = Quaternion.AngleAxis(e, axis1) * math.normalize(math.cross(axis1, cameraForward));
|
|
||||||
|
|
||||||
vectorToPointOnHorizon = math.normalize(Vector3.ProjectOnPlane(vectorToPointOnHorizon, axis1));
|
|
||||||
|
|
||||||
var intersectionDirection = vectorToPointOnHorizon;
|
|
||||||
var angle1 = Vector3.SignedAngle(axis2, intersectionDirection, axis1);
|
|
||||||
var angle2 = Vector3.SignedAngle(axis3, intersectionDirection, axis1);
|
|
||||||
|
|
||||||
if (angle1 <= 0 || angle2 >= 0)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
var point = corner.position + (float3)(intersectionDirection * radius);
|
|
||||||
|
|
||||||
if (corner.splitCount < 2)
|
|
||||||
{
|
|
||||||
corner.splitAxis[corner.splitCount][i] = true;
|
|
||||||
corner.intersections[corner.splitCount] = intersectionDirection;
|
|
||||||
corner.points[corner.splitCount] = point;
|
|
||||||
|
|
||||||
corner.splitCount++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!math.any(corner.splitAxis[0]) &&
|
|
||||||
!math.any(corner.splitAxis[1]))
|
|
||||||
{
|
|
||||||
corner.splitCount = 0;
|
|
||||||
corner.splitAxis[0] = false;
|
|
||||||
corner.splitAxis[1] = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void DrawCorner(Corner corner, bool3 showAxis)
|
|
||||||
{
|
|
||||||
var color = Handles.color;
|
|
||||||
var axes = corner.axes;
|
|
||||||
var intersections = corner.intersections;
|
|
||||||
var normals = corner.normals;
|
|
||||||
var origin = corner.position;
|
|
||||||
var radius = corner.radius;
|
|
||||||
|
|
||||||
if (corner.splitCount <= 1)
|
|
||||||
{
|
|
||||||
AdjustMidpointHandleColor(corner.isBackFaced);
|
|
||||||
if (showAxis[0]) Handles.DrawWireArc(origin, normals[0], axes[1], corner.angle[1], radius);
|
|
||||||
if (showAxis[1]) Handles.DrawWireArc(origin, normals[1], axes[2], corner.angle[2], radius);
|
|
||||||
if (showAxis[2]) Handles.DrawWireArc(origin, normals[2], axes[0], corner.angle[0], radius);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var angleLength = Vector3.SignedAngle(Vector3.ProjectOnPlane(intersections[0], corner.cameraForward),
|
|
||||||
Vector3.ProjectOnPlane(intersections[1], corner.cameraForward), corner.cameraForward);
|
|
||||||
bool reversePolarity = angleLength < 0;
|
|
||||||
if (reversePolarity)
|
|
||||||
Handles.DrawWireArc(origin, corner.cameraForward, corner.points[1] - origin, -angleLength, radius);
|
|
||||||
else
|
|
||||||
Handles.DrawWireArc(origin, corner.cameraForward, corner.points[0] - origin, angleLength, radius);
|
|
||||||
|
|
||||||
|
|
||||||
var backfacedColor = GetStateColor(true);
|
|
||||||
|
|
||||||
var axesBackfaced = new bool3(math.length(intersections[0] - axes[0]) < kDistanceEpsilon || math.length(intersections[1] - axes[0]) < kDistanceEpsilon,
|
|
||||||
math.length(intersections[0] - axes[1]) < kDistanceEpsilon || math.length(intersections[1] - axes[1]) < kDistanceEpsilon,
|
|
||||||
math.length(intersections[0] - axes[2]) < kDistanceEpsilon || math.length(intersections[1] - axes[2]) < kDistanceEpsilon);
|
|
||||||
|
|
||||||
var color1 = reversePolarity ? color : backfacedColor;
|
|
||||||
var color2 = reversePolarity ? backfacedColor : color;
|
|
||||||
|
|
||||||
for (int A = 1, B = 2, C = 0; C < 3; A = B, B = C, C++)
|
|
||||||
{
|
|
||||||
if (corner.splitAxis[0][C] == corner.splitAxis[1][C])
|
|
||||||
{
|
|
||||||
if (!axesBackfaced[A]) { angleLength = Vector3.Angle(intersections[0], axes[A]); axesBackfaced[A] = (angleLength<kDegreeEpsilon || angleLength> corner.angle[C] - kDegreeEpsilon); }
|
|
||||||
if (!axesBackfaced[B]) { angleLength = Vector3.Angle(intersections[1], axes[A]); axesBackfaced[B] = (angleLength<kDegreeEpsilon || angleLength> corner.angle[C] - kDegreeEpsilon); }
|
|
||||||
}
|
|
||||||
else if (corner.splitAxis[0][C])
|
|
||||||
{
|
|
||||||
if (showAxis[C])
|
|
||||||
{
|
|
||||||
angleLength = Vector3.Angle(intersections[0], axes[A]);
|
|
||||||
Handles.color = color1; Handles.DrawWireArc(origin, normals[C], intersections[0], -angleLength, radius);
|
|
||||||
Handles.color = color2; Handles.DrawWireArc(origin, normals[C], intersections[0], corner.angle[A] - angleLength, radius);
|
|
||||||
}
|
|
||||||
axesBackfaced[A] = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
//if (corner.splitAxis[1][C])
|
|
||||||
{
|
|
||||||
if (showAxis[C])
|
|
||||||
{
|
|
||||||
angleLength = Vector3.Angle(intersections[1], axes[A]);
|
|
||||||
Handles.color = color2; Handles.DrawWireArc(origin, normals[C], intersections[1], -angleLength, radius);
|
|
||||||
Handles.color = color1; Handles.DrawWireArc(origin, normals[C], intersections[1], corner.angle[A] - angleLength, radius);
|
|
||||||
}
|
|
||||||
axesBackfaced[B] = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// check for singularity
|
|
||||||
if (math.all(axesBackfaced))
|
|
||||||
axesBackfaced = corner.isBackFaced;
|
|
||||||
|
|
||||||
for (int A = 1, B = 2, C = 0; C < 3; A = B, B = C, C++)
|
|
||||||
{
|
|
||||||
if (!showAxis[C])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (corner.splitAxis[0][C] == corner.splitAxis[1][C])
|
|
||||||
{
|
|
||||||
Handles.color = (axesBackfaced[B] && axesBackfaced[A]) ? color1 : color2;
|
|
||||||
Handles.DrawWireArc(origin, normals[C], axes[A], corner.angle[A], radius);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Handles.color = color;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e3c60d0e0940c3c419ec030b9685c622
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,94 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Unity.Mathematics;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEditor.IMGUI.Controls;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Unity.Physics.Editor
|
|
||||||
{
|
|
||||||
class PhysicsCapsuleBoundsHandle : CapsuleBoundsHandle
|
|
||||||
{
|
|
||||||
static PhysicsBoundsHandleUtility.Corner[] s_Corners = new PhysicsBoundsHandleUtility.Corner[8];
|
|
||||||
|
|
||||||
protected override void DrawWireframe()
|
|
||||||
{
|
|
||||||
if (this.radius <= 0f)
|
|
||||||
{
|
|
||||||
base.DrawWireframe();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var cameraPos = default(float3);
|
|
||||||
var cameraFwd = new float3 { z = 1f };
|
|
||||||
var cameraOrtho = true;
|
|
||||||
if (Camera.current != null)
|
|
||||||
{
|
|
||||||
cameraPos = Camera.current.transform.position;
|
|
||||||
cameraFwd = Camera.current.transform.forward;
|
|
||||||
cameraOrtho = Camera.current.orthographic;
|
|
||||||
}
|
|
||||||
|
|
||||||
var size = new float3(this.radius * 2f, this.radius * 2f, height);
|
|
||||||
var radius = this.radius;
|
|
||||||
var origin = (float3)this.center;
|
|
||||||
var bounds = new Bounds(this.center, size);
|
|
||||||
|
|
||||||
// Since the geometry is transformed by Handles.matrix during rendering, we transform the camera position
|
|
||||||
// by the inverse matrix so that the two-shaded wireframe will have the proper orientation.
|
|
||||||
var invMatrix = Handles.inverseMatrix;
|
|
||||||
var cameraCenter = (float3)invMatrix.MultiplyPoint(cameraPos);
|
|
||||||
var cameraForward = (float3)invMatrix.MultiplyVector(cameraFwd);
|
|
||||||
|
|
||||||
bool isCameraInsideBox = Camera.current != null
|
|
||||||
&& bounds.Contains(invMatrix.MultiplyPoint(cameraPos));
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, 1f), radius, 0, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(-1f, 1f, 1f), radius, 0, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, 1f), radius, 1, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, -1f, 1f), radius, 1, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, 1f), radius, 2, axes, isCameraInsideBox);
|
|
||||||
PhysicsBoundsHandleUtility.DrawFace(origin, size * new float3(1f, 1f, -1f), radius, 2, axes, isCameraInsideBox);
|
|
||||||
|
|
||||||
var corner = 0.5f * size - new float3(1f) * radius;
|
|
||||||
var axisx = new float3(1f, 0f, 0f);
|
|
||||||
var axisy = new float3(0f, 1f, 0f);
|
|
||||||
var axisz = new float3(0f, 0f, 1f);
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, 1f, -1f), quaternion.LookRotation(-axisz, axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[0]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, 1f, 1f), quaternion.LookRotation(-axisx, axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[1]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, 1f, 1f), quaternion.LookRotation(axisz, axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[2]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, 1f, -1f), quaternion.LookRotation(axisx, axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[3]);
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, -1f, -1f), quaternion.LookRotation(-axisx, -axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[4]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(-1f, -1f, 1f), quaternion.LookRotation(axisz, -axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[5]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, -1f, 1f), quaternion.LookRotation(axisx, -axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[6]);
|
|
||||||
PhysicsBoundsHandleUtility.CalculateCornerHorizon(origin + corner * new float3(1f, -1f, -1f), quaternion.LookRotation(-axisz, -axisy), cameraCenter, cameraForward, cameraOrtho, radius, out s_Corners[7]);
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[0], new bool3(false, true, true));
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[3], new bool3(true, false, true));
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[4], new bool3(true, false, true));
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[7], new bool3(false, true, true));
|
|
||||||
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[1], new bool3(true, false, true));
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[2], new bool3(false, true, true));
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[5], new bool3(false, true, true));
|
|
||||||
PhysicsBoundsHandleUtility.DrawCorner(s_Corners[6], new bool3(true, false, true));
|
|
||||||
|
|
||||||
// Draw the horizon edges between the corners
|
|
||||||
for (int upA = 3, upB = 0; upB < 4; upA = upB, upB++)
|
|
||||||
{
|
|
||||||
int dnA = upA + 4;
|
|
||||||
int dnB = upB + 4;
|
|
||||||
|
|
||||||
if (s_Corners[upA].splitAxis[0].z && s_Corners[upB].splitAxis[1].x) Handles.DrawLine(s_Corners[upA].points[0], s_Corners[upB].points[1]);
|
|
||||||
if (s_Corners[upA].splitAxis[1].z && s_Corners[upB].splitAxis[0].x) Handles.DrawLine(s_Corners[upA].points[1], s_Corners[upB].points[0]);
|
|
||||||
|
|
||||||
if (s_Corners[dnA].splitAxis[0].x && s_Corners[dnB].splitAxis[1].z) Handles.DrawLine(s_Corners[dnA].points[0], s_Corners[dnB].points[1]);
|
|
||||||
if (s_Corners[dnA].splitAxis[1].x && s_Corners[dnB].splitAxis[0].z) Handles.DrawLine(s_Corners[dnA].points[1], s_Corners[dnB].points[0]);
|
|
||||||
|
|
||||||
if (s_Corners[dnA].splitAxis[0].y && s_Corners[upA].splitAxis[1].y) Handles.DrawLine(s_Corners[dnA].points[0], s_Corners[upA].points[1]);
|
|
||||||
if (s_Corners[dnA].splitAxis[1].y && s_Corners[upA].splitAxis[0].y) Handles.DrawLine(s_Corners[dnA].points[1], s_Corners[upA].points[0]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: c1af170fae6badc40bb2ed5376031c6f
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,121 +0,0 @@
|
|||||||
using System;
|
|
||||||
using Unity.Mathematics;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEditor.IMGUI.Controls;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Unity.Physics.Editor
|
|
||||||
{
|
|
||||||
class PhysicsSphereBoundsHandle : SphereBoundsHandle
|
|
||||||
{
|
|
||||||
protected override void DrawWireframe()
|
|
||||||
{
|
|
||||||
bool x = IsAxisEnabled(Axes.X);
|
|
||||||
bool y = IsAxisEnabled(Axes.Y);
|
|
||||||
bool z = IsAxisEnabled(Axes.Z);
|
|
||||||
|
|
||||||
if (x && !y && !z)
|
|
||||||
Handles.DrawLine(Vector3.right * radius, Vector3.left * radius);
|
|
||||||
if (!x && y && !z)
|
|
||||||
Handles.DrawLine(Vector3.up * radius, Vector3.down * radius);
|
|
||||||
if (!x && !y && z)
|
|
||||||
Handles.DrawLine(Vector3.forward * radius, Vector3.back * radius);
|
|
||||||
|
|
||||||
const float kEpsilon = 0.000001F;
|
|
||||||
|
|
||||||
if (radius > 0)
|
|
||||||
{
|
|
||||||
var frontfacedColor = Handles.color;
|
|
||||||
var backfacedColor = Handles.color * new Color(1f, 1f, 1f, PhysicsBoundsHandleUtility.kBackfaceAlphaMultiplier);
|
|
||||||
var discVisible = new bool[]
|
|
||||||
{
|
|
||||||
y && z,
|
|
||||||
x && z,
|
|
||||||
x && y
|
|
||||||
};
|
|
||||||
var discOrientations = new float3[]
|
|
||||||
{
|
|
||||||
Vector3.right,
|
|
||||||
Vector3.up,
|
|
||||||
Vector3.forward
|
|
||||||
};
|
|
||||||
|
|
||||||
// Since the geometry is transformed by Handles.matrix during rendering, we transform the camera position
|
|
||||||
// by the inverse matrix so that the two-shaded wireframe will have the proper orientation.
|
|
||||||
var invMatrix = Handles.inverseMatrix;
|
|
||||||
|
|
||||||
var cameraCenter = Camera.current == null ? Vector3.zero : Camera.current.transform.position;
|
|
||||||
var cameraToCenter = center - invMatrix.MultiplyPoint(cameraCenter); // vector from camera to center
|
|
||||||
var sqrDistCameraToCenter = cameraToCenter.sqrMagnitude;
|
|
||||||
var sqrRadius = radius * radius; // squared radius
|
|
||||||
var isCameraOrthographic = Camera.current == null || Camera.current.orthographic;
|
|
||||||
var sqrOffset = isCameraOrthographic ? 0 : (sqrRadius * sqrRadius / sqrDistCameraToCenter); // squared distance from actual center to drawn disc center
|
|
||||||
var insideAmount = sqrOffset / sqrRadius;
|
|
||||||
if (insideAmount < 1)
|
|
||||||
{
|
|
||||||
if (math.abs(sqrDistCameraToCenter) >= kEpsilon)
|
|
||||||
{
|
|
||||||
using (new Handles.DrawingScope(frontfacedColor))
|
|
||||||
{
|
|
||||||
if (isCameraOrthographic)
|
|
||||||
{
|
|
||||||
var horizonRadius = radius;
|
|
||||||
var horizonCenter = center;
|
|
||||||
Handles.DrawWireDisc(horizonCenter, cameraToCenter, horizonRadius);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
var horizonRadius = math.sqrt(sqrRadius - sqrOffset);
|
|
||||||
var horizonCenter = center - sqrRadius * cameraToCenter / sqrDistCameraToCenter;
|
|
||||||
Handles.DrawWireDisc(horizonCenter, cameraToCenter, horizonRadius);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var planeNormal = cameraToCenter.normalized;
|
|
||||||
for (int i = 0; i < 3; i++)
|
|
||||||
{
|
|
||||||
if (!discVisible[i])
|
|
||||||
continue;
|
|
||||||
|
|
||||||
var discOrientation = discOrientations[i];
|
|
||||||
|
|
||||||
var angleBetweenDiscAndNormal = math.acos(math.dot(discOrientation, planeNormal));
|
|
||||||
angleBetweenDiscAndNormal = (math.PI * 0.5f) - math.min(angleBetweenDiscAndNormal, math.PI - angleBetweenDiscAndNormal);
|
|
||||||
|
|
||||||
float f = math.tan(angleBetweenDiscAndNormal);
|
|
||||||
float g = math.sqrt(sqrOffset + f * f * sqrOffset) / radius;
|
|
||||||
if (g < 1)
|
|
||||||
{
|
|
||||||
var angleToHorizon = math.degrees(math.asin(g));
|
|
||||||
var discTangent = math.cross(discOrientation, planeNormal);
|
|
||||||
var vectorToPointOnHorizon = Quaternion.AngleAxis(angleToHorizon, discOrientation) * discTangent;
|
|
||||||
var horizonArcLength = (90 - angleToHorizon) * 2.0f;
|
|
||||||
|
|
||||||
using (new Handles.DrawingScope(frontfacedColor))
|
|
||||||
Handles.DrawWireArc(center, discOrientation, vectorToPointOnHorizon, horizonArcLength, radius);
|
|
||||||
using (new Handles.DrawingScope(backfacedColor))
|
|
||||||
Handles.DrawWireArc(center, discOrientation, vectorToPointOnHorizon, horizonArcLength - 360, radius);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
using (new Handles.DrawingScope(backfacedColor))
|
|
||||||
Handles.DrawWireDisc(center, discOrientation, radius);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
using (new Handles.DrawingScope(backfacedColor))
|
|
||||||
{
|
|
||||||
for (int i = 0; i < 3; i++)
|
|
||||||
{
|
|
||||||
var discOrientation = discOrientations[i];
|
|
||||||
Handles.DrawWireDisc(center, discOrientation, radius);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d4f82f07aa94f9241ad081812f8c3b1a
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,3 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 30413a61e5b44d54dbd680b077804e45
|
|
||||||
timeCreated: 1678288991
|
|
@ -1,24 +0,0 @@
|
|||||||
#if UNITY_EDITOR
|
|
||||||
|
|
||||||
using Unity.Physics.Authoring;
|
|
||||||
using UnityEditor;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace Unity.Physics.Editor
|
|
||||||
{
|
|
||||||
[CustomEditor(typeof(BallAndSocketJoint))]
|
|
||||||
public class BallAndSocketEditor : UnityEditor.Editor
|
|
||||||
{
|
|
||||||
protected virtual void OnSceneGUI()
|
|
||||||
{
|
|
||||||
BallAndSocketJoint ballAndSocket = (BallAndSocketJoint)target;
|
|
||||||
|
|
||||||
EditorGUI.BeginChangeCheck();
|
|
||||||
|
|
||||||
EditorUtilities.EditPivot(ballAndSocket.worldFromA, ballAndSocket.worldFromB, ballAndSocket.AutoSetConnected,
|
|
||||||
ref ballAndSocket.PositionLocal, ref ballAndSocket.PositionInConnectedEntity, ballAndSocket);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8bfafdfc59379ec4c86d512554577279
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user