Skip to content

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using Sandbox.ModAPI;

namespace SC.GyroscopicGunsight.API.CoreSystems
{
/// <summary>
/// https://github.com/sstixrud/CoreSystems/blob/master/BaseData/Scripts/CoreSystems/Api/CoreSystemsApiBlocks.cs
/// </summary>
public partial class WcApi
{
private Func<IMyTerminalBlock, IDictionary<string, int>, bool> _getBlockWeaponMap;

public bool GetBlockWeaponMap(IMyTerminalBlock weaponBlock, IDictionary<string, int> collection) =>
_getBlockWeaponMap?.Invoke(weaponBlock, collection) ?? false;
}
}
Loading