mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] 接入ET8服务端
[+] 接入ET8服务端
This commit is contained in:
35
Assets/GameScripts/ThirdParty/Recast/Recast.cs
vendored
Normal file
35
Assets/GameScripts/ThirdParty/Recast/Recast.cs
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ET
|
||||
{
|
||||
public static class Recast
|
||||
{
|
||||
#if UNITY_IPHONE && !UNITY_EDITOR
|
||||
const string RecastDLL = "__Internal";
|
||||
#else
|
||||
const string RecastDLL = "RecastDll";
|
||||
#endif
|
||||
public const int MAX_POLYS = 256;
|
||||
|
||||
[DllImport(RecastDLL, CallingConvention=CallingConvention.Cdecl)]
|
||||
public static extern IntPtr RecastLoad(byte[] buffer, int n);
|
||||
|
||||
[DllImport(RecastDLL, CallingConvention=CallingConvention.Cdecl)]
|
||||
public static extern void RecastClear(IntPtr navPtr);
|
||||
|
||||
[DllImport(RecastDLL, CallingConvention=CallingConvention.Cdecl)]
|
||||
public static extern int RecastFind(IntPtr navPtr, float[] extents, float[] startPos, float[] endPos, float[] straightPath);
|
||||
|
||||
|
||||
[DllImport(RecastDLL, CallingConvention=CallingConvention.Cdecl)]
|
||||
public static extern int RecastFindNearestPoint(IntPtr navPtr, float[] extents, float[] pos, float[] nearestPos);
|
||||
|
||||
|
||||
[DllImport(RecastDLL, CallingConvention=CallingConvention.Cdecl)]
|
||||
public static extern int RecastFindRandomPointAroundCircle(IntPtr navPtr, float[] extents, float[] centerPos, float radius, float[] randomPos);
|
||||
|
||||
[DllImport(RecastDLL, CallingConvention=CallingConvention.Cdecl)]
|
||||
public static extern int RecastFindRandomPoint(IntPtr navPtr, float[] randomPos);
|
||||
}
|
||||
}
|
11
Assets/GameScripts/ThirdParty/Recast/Recast.cs.meta
vendored
Normal file
11
Assets/GameScripts/ThirdParty/Recast/Recast.cs.meta
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14567fd01a0bc7b438d6579e38a9cfc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user