Use ActorComponent instead of IActorComponent or BasicActorComponent. (#3966)

This commit is contained in:
Vera Aguilera Puerto
2021-05-12 13:42:18 +02:00
committed by GitHub
parent 3319dc0599
commit 462cddf860
65 changed files with 220 additions and 220 deletions

View File

@@ -114,7 +114,7 @@ namespace Content.Server.GameObjects.Components.Power.AME
/// <param name="args">Data relevant to the event such as the actor which triggered it.</param>
void IActivate.Activate(ActivateEventArgs args)
{
if (!args.User.TryGetComponent(out IActorComponent? actor))
if (!args.User.TryGetComponent(out ActorComponent? actor))
{
return;
}
@@ -128,7 +128,7 @@ namespace Content.Server.GameObjects.Components.Power.AME
var activeHandEntity = hands.GetActiveHand?.Owner;
if (activeHandEntity == null)
{
UserInterface?.Open(actor.playerSession);
UserInterface?.Open(actor.PlayerSession);
}
}

View File

@@ -195,12 +195,12 @@ namespace Content.Server.GameObjects.Components.Power.ApcNetComponents
void IActivate.Activate(ActivateEventArgs eventArgs)
{
if (!eventArgs.User.TryGetComponent(out IActorComponent? actor))
if (!eventArgs.User.TryGetComponent(out ActorComponent? actor))
{
return;
}
UserInterface?.Open(actor.playerSession);
UserInterface?.Open(actor.PlayerSession);
}
}
}

View File

@@ -59,7 +59,7 @@ namespace Content.Server.GameObjects.Components.Power.PowerNetComponents
void IActivate.Activate(ActivateEventArgs eventArgs)
{
if (!eventArgs.User.TryGetComponent(out IActorComponent? actor))
if (!eventArgs.User.TryGetComponent(out ActorComponent? actor))
{
return;
}
@@ -71,7 +71,7 @@ namespace Content.Server.GameObjects.Components.Power.PowerNetComponents
// always update the UI immediately before opening, just in case
UpdateUIState();
UserInterface?.Open(actor.playerSession);
UserInterface?.Open(actor.PlayerSession);
}
}
}