Enforce stricter resource API

This commit is contained in:
Gustas
2025-03-04 13:53:49 +02:00
committed by Matthias Mailänder
parent 7779d0c27c
commit 5aa7ee43db
9 changed files with 37 additions and 36 deletions

View File

@@ -22,8 +22,8 @@ namespace OpenRA.Mods.Common.Warheads
[Desc("Size of the area. The resources are removed within this area.", "Provide 2 values for a ring effect (outer/inner).")]
public readonly int[] Size = [0, 0];
[Desc("Amount of resources to be removed. If negative or zero, all resources within the area will be removed.")]
public readonly int ResourceAmount = 0;
[Desc("Amount of resources to be removed. If zero, all resources within the area will be removed.")]
public readonly byte ResourceAmount = 0;
[Desc("Resource types to remove with this warhead.", "If empty, all resource types will be removed.")]
public readonly HashSet<string> ResourceTypes = [];