コード例 #1
0
ファイル: Probe.cs プロジェクト: fedarovich/xplane-dotnet
 /// <inheritdoc />
 public void Dispose()
 {
     if (Interlocked.CompareExchange(ref _disposed, 1, 0) == 0)
     {
         SceneryAPI.DestroyProbe(_ref);
         _ref = default;
     }
 }
コード例 #2
0
ファイル: Probe.cs プロジェクト: fedarovich/xplane-dotnet
 public Probe(ProbeType probeType = ProbeType.XplmProbeY)
 {
     _ref = SceneryAPI.CreateProbe(probeType);
 }