mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-26 18:35:34 +00:00
22 lines
607 B
C#
22 lines
607 B
C#
|
using QSB.EchoesOfTheEye.Ghosts.WorldObjects;
|
|||
|
using QSB.Messaging;
|
|||
|
using QSB.Utility;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace QSB.EchoesOfTheEye.Ghosts.Messages;
|
|||
|
|
|||
|
internal class ChangeActionMessage : QSBWorldObjectMessage<QSBGhostBrain, GhostAction.Name>
|
|||
|
{
|
|||
|
public ChangeActionMessage(GhostAction.Name name) : base(name) { }
|
|||
|
|
|||
|
public override void OnReceiveRemote()
|
|||
|
{
|
|||
|
DebugLog.DebugWrite($"{WorldObject.AttachedObject._name} Change action to {Data}");
|
|||
|
WorldObject.ChangeAction(WorldObject.GetAction(Data));
|
|||
|
}
|
|||
|
}
|