From 0eb8def2b86dc6d23fd148c11de2a9c24d825ed5 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Thu, 20 Oct 2016 18:46:49 +0200 Subject: [PATCH] Move Cargo interfaces to TraitsInterfaces --- OpenRA.Mods.Common/Traits/Cargo.cs | 6 ------ OpenRA.Mods.Common/TraitsInterfaces.cs | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/OpenRA.Mods.Common/Traits/Cargo.cs b/OpenRA.Mods.Common/Traits/Cargo.cs index 202f901220..854ba45bac 100644 --- a/OpenRA.Mods.Common/Traits/Cargo.cs +++ b/OpenRA.Mods.Common/Traits/Cargo.cs @@ -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, ISuppressInitExport { [FieldFromYamlKey] diff --git a/OpenRA.Mods.Common/TraitsInterfaces.cs b/OpenRA.Mods.Common/TraitsInterfaces.cs index bc06006e5e..f41b29452d 100644 --- a/OpenRA.Mods.Common/TraitsInterfaces.cs +++ b/OpenRA.Mods.Common/TraitsInterfaces.cs @@ -60,6 +60,12 @@ namespace OpenRA.Mods.Common.Traits [RequireExplicitImplementation] 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 { IEnumerable UpgradeTypes { get; }