Set pAI up with a static map the pAI can use (#23499)

* Set pAI up with a trackless map

* Added a untracked map user interface class to support gps-less mapping
* Added to pAI by default, expect it to be  given to borgs as well in time.

As the personal AI is literally immobile as a ghost, it is useful to ensure that people carry one. With that idea in mind, it is worth giving the pAI a reason to be carried that doesn't depend on the player having a cracking selection of midi files on hand.

* Tried to use new ProtoId and have EntityUid on the client as commented by metalgearsloth

* Review

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
mr-bo-jangles
2024-01-06 07:31:20 +00:00
committed by GitHub
parent 46ea3b63e8
commit 412f3f470c
5 changed files with 66 additions and 10 deletions

View File

@@ -26,11 +26,13 @@ namespace Content.Shared.PAI
private void OnMapInit(EntityUid uid, PAIComponent component, MapInitEvent args)
{
_actionsSystem.AddAction(uid, ref component.MidiAction, component.MidiActionId);
_actionsSystem.AddAction(uid, ref component.MapAction, component.MapActionId);
}
private void OnShutdown(EntityUid uid, PAIComponent component, ComponentShutdown args)
{
_actionsSystem.RemoveAction(uid, component.MidiAction);
_actionsSystem.RemoveAction(uid, component.MapAction);
}
}
}