using QSB.EchoesOfTheEye.Prisoner.WorldObjects; using QSB.Messaging; using QSB.WorldSync; namespace QSB.EchoesOfTheEye.Prisoner.Messages; internal class PrisonerEnterBehaviourMessage : QSBWorldObjectMessage { public PrisonerEnterBehaviourMessage(PrisonerBehavior behaviour, PrisonerBehaviourCueMarker marker) : base((behaviour, marker != null ? marker.GetWorldObject().ObjectId : -1)) { } public override void OnReceiveRemote() { var marker = (Data.markerIndex == -1) ? null : Data.markerIndex.GetWorldObject().Transform; WorldObject.EnterBehaviour(Data.behaviour, marker); } }