Move Cargo interfaces to TraitsInterfaces

This commit is contained in:
reaperrr
2016-10-20 18:46:49 +02:00
parent 437e142031
commit 0eb8def2b8
2 changed files with 6 additions and 6 deletions

View File

@@ -422,12 +422,6 @@ namespace OpenRA.Mods.Common.Traits
} }
} }
[RequireExplicitImplementation]
public interface INotifyPassengerEntered { void OnPassengerEntered(Actor self, Actor passenger); }
[RequireExplicitImplementation]
public interface INotifyPassengerExited { void OnPassengerExited(Actor self, Actor passenger); }
public class RuntimeCargoInit : IActorInit<Actor[]>, ISuppressInitExport public class RuntimeCargoInit : IActorInit<Actor[]>, ISuppressInitExport
{ {
[FieldFromYamlKey] [FieldFromYamlKey]

View File

@@ -60,6 +60,12 @@ namespace OpenRA.Mods.Common.Traits
[RequireExplicitImplementation] [RequireExplicitImplementation]
public interface INotifyBlockingMove { void OnNotifyBlockingMove(Actor self, Actor blocking); } public interface INotifyBlockingMove { void OnNotifyBlockingMove(Actor self, Actor blocking); }
[RequireExplicitImplementation]
public interface INotifyPassengerEntered { void OnPassengerEntered(Actor self, Actor passenger); }
[RequireExplicitImplementation]
public interface INotifyPassengerExited { void OnPassengerExited(Actor self, Actor passenger); }
public interface IUpgradable public interface IUpgradable
{ {
IEnumerable<string> UpgradeTypes { get; } IEnumerable<string> UpgradeTypes { get; }