25.06.2017, 17:21
(
Последний раз редактировалось AwareWolf; 25.06.2017 в 18:35.
)
Quote:
Thank you sir, for example, if a native returns me something, I can use it with the invoke?
For example: native FCNPC_GetPosition |
The most extreme example of getting back an Array reference type is found in the ColAndreas include (CA_RayCastMultiLine).
Код:
[NativeMethod(11, 11, 11, 11, 11, Function = "CA_RayCastMultiLine")] public virtual int RayCastMultiLine(float startX, float startY, float startZ, float endX, float endY, float endZ, out float[] x, out float[] y, out float[] z, out float[] distance, out int[] modelId, int size) { throw new NativeNotImplementedException(); }
(He actually said 12s but providing 12s wasn't working for me.)