Exemple #1
0
 /// <inheritdoc />
 public void Dispose()
 {
     if (Interlocked.CompareExchange(ref _disposed, 1, 0) == 0)
     {
         SceneryAPI.DestroyProbe(_ref);
         _ref = default;
     }
 }
Exemple #2
0
 public Probe(ProbeType probeType = ProbeType.XplmProbeY)
 {
     _ref = SceneryAPI.CreateProbe(probeType);
 }