Allow mod code to access the buildable terrain overlay.

This commit is contained in:
Matthias Mailänder
2021-06-26 18:51:46 +02:00
committed by Paul Chote
parent 9a587d2aaa
commit c8ab409d38

View File

@@ -17,7 +17,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits namespace OpenRA.Mods.Common.Traits
{ {
[TraitLocation(SystemActors.EditorWorld)] [TraitLocation(SystemActors.EditorWorld)]
class BuildableTerrainOverlayInfo : TraitInfo public class BuildableTerrainOverlayInfo : TraitInfo
{ {
[FieldLoader.Require] [FieldLoader.Require]
public readonly HashSet<string> AllowedTerrainTypes = null; public readonly HashSet<string> AllowedTerrainTypes = null;
@@ -42,7 +42,7 @@ namespace OpenRA.Mods.Common.Traits
} }
} }
class BuildableTerrainOverlay : IRenderAboveWorld, IWorldLoaded, INotifyActorDisposing public class BuildableTerrainOverlay : IRenderAboveWorld, IWorldLoaded, INotifyActorDisposing
{ {
readonly BuildableTerrainOverlayInfo info; readonly BuildableTerrainOverlayInfo info;
readonly World world; readonly World world;