Allow mod code to access the buildable terrain overlay.
This commit is contained in:
committed by
Paul Chote
parent
9a587d2aaa
commit
c8ab409d38
@@ -17,7 +17,7 @@ using OpenRA.Traits;
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
{
|
||||
[TraitLocation(SystemActors.EditorWorld)]
|
||||
class BuildableTerrainOverlayInfo : TraitInfo
|
||||
public class BuildableTerrainOverlayInfo : TraitInfo
|
||||
{
|
||||
[FieldLoader.Require]
|
||||
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 World world;
|
||||
|
||||
Reference in New Issue
Block a user