Add TransformsIntoDockClient

This commit is contained in:
Gustas
2023-01-24 19:33:42 +02:00
committed by Matthias Mailänder
parent deacc7ad65
commit 8e7fa26709
5 changed files with 175 additions and 6 deletions

View File

@@ -222,6 +222,8 @@ namespace OpenRA.Mods.Common.Traits
public interface IDockClient
{
BitSet<DockType> GetDockType { get; }
/// <summary>When null, the client should act as if it can dock but never do.</summary>
DockClientManager DockClientManager { get; }
void OnDockStarted(Actor self, Actor hostActor, IDockHost host);
bool OnDockTick(Actor self, Actor hostActor, IDockHost dock);
@@ -283,6 +285,8 @@ namespace OpenRA.Mods.Common.Traits
int DragLength { get; }
}
public interface IDockClientManagerInfo : ITraitInfoInterface { }
[RequireExplicitImplementation]
public interface INotifyLoadCargo
{