public bool EffectorPotentialRelease(NAPI.UID uid, out double potential) { var result = 0.0; if (NAPI.BrainBrainEffectorPotentialRelease(handle, uid, ref result)) { potential = result; return(true); } potential = result; return(false); }
private NAPI.UID[] MakeUids(IntPtr array, UIntPtr count) { var result = new NAPI.UID[(uint)count]; unsafe { var size = sizeof(NAPI.UID); for (var i = 0; i < (uint)count; ++i) { result[i] = *(NAPI.UID *)array.ToPointer(); array += size; } } return(result); }
public bool SensorTriggerImpulse(NAPI.UID uid, double potential) { return(NAPI.BrainBrainSensorTriggerImpulse(handle, uid, potential)); }