Add property requirements to safe traits
This commit is contained in:
@@ -15,6 +15,7 @@ namespace OpenRA.Mods.Common.Traits
|
||||
[Desc("Overrides the build time calculated by actor value.")]
|
||||
public class CustomBuildTimeValueInfo : TraitInfo<CustomBuildTimeValue>
|
||||
{
|
||||
[FieldLoader.Require]
|
||||
[Desc("Measured in ticks.")]
|
||||
public readonly int Value = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user