feat: expose buffer geometry via ClaimLinkApi for external mods
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using Vintagestory.API.MathTools;
|
||||
|
||||
namespace ClaimLink;
|
||||
|
||||
public static class ClaimLinkApi
|
||||
{
|
||||
public static IReadOnlyDictionary<int, List<Cuboidi>> BufferMap
|
||||
{
|
||||
get
|
||||
{
|
||||
Dictionary<int, List<Cuboidi>> result = new();
|
||||
foreach (int groupId in ClaimLinkModSystem.Registry.All)
|
||||
result[groupId] = ClaimLinkBuffer.GetBuffer(groupId);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user