Make building and bridge repair traits public

This commit is contained in:
dnqbob
2022-09-02 15:21:33 +08:00
committed by abcdefg30
parent fb5624880b
commit 6ccd000257
7 changed files with 14 additions and 14 deletions

View File

@@ -19,7 +19,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Allows bridges to be targeted for demolition and repair.")]
class BridgeHutInfo : TraitInfo, IDemolishableInfo
public class BridgeHutInfo : TraitInfo, IDemolishableInfo
{
[Desc("Bridge types to act on")]
public readonly string[] Types = { "GroundLevelBridge" };
@@ -41,7 +41,7 @@ namespace OpenRA.Mods.Common.Traits
public override object Create(ActorInitializer init) { return new BridgeHut(init.World, this); }
}
class BridgeHut : INotifyCreated, IDemolishable, ITick
public class BridgeHut : INotifyCreated, IDemolishable, ITick
{
public readonly BridgeHutInfo Info;
readonly BridgeLayer bridgeLayer;