diff options
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 81fa58b..8a5e631 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -36,6 +36,7 @@ using OpenSim.Framework.Console; | |||
36 | using OpenSim.Framework.Interfaces; | 36 | using OpenSim.Framework.Interfaces; |
37 | using OpenSim.Framework.Types; | 37 | using OpenSim.Framework.Types; |
38 | using OpenSim.Framework.Data; | 38 | using OpenSim.Framework.Data; |
39 | using OpenSim.Framework.Utilities; | ||
39 | 40 | ||
40 | namespace OpenSim.Region.ClientStack | 41 | namespace OpenSim.Region.ClientStack |
41 | { | 42 | { |
@@ -576,6 +577,31 @@ namespace OpenSim.Region.ClientStack | |||
576 | this.OutPacket(inventoryReply); | 577 | this.OutPacket(inventoryReply); |
577 | } | 578 | } |
578 | 579 | ||
580 | /// <summary> | ||
581 | /// | ||
582 | /// </summary> | ||
583 | /// <param name="message"></param> | ||
584 | public void SendAlertMessage(string message) | ||
585 | { | ||
586 | AlertMessagePacket alertPack = new AlertMessagePacket(); | ||
587 | alertPack.AlertData.Message = Helpers.StringToField(message); | ||
588 | OutPacket(alertPack); | ||
589 | } | ||
590 | |||
591 | /// <summary> | ||
592 | /// | ||
593 | /// </summary> | ||
594 | /// <param name="message"></param> | ||
595 | /// <param name="modal"></param> | ||
596 | public void SendAgentAlertMessage(string message, bool modal) | ||
597 | { | ||
598 | AgentAlertMessagePacket alertPack = new AgentAlertMessagePacket(); | ||
599 | alertPack.AgentData.AgentID = this.AgentID; | ||
600 | alertPack.AlertData.Message = Helpers.StringToField(message); | ||
601 | alertPack.AlertData.Modal = modal; | ||
602 | OutPacket(alertPack); | ||
603 | } | ||
604 | |||
579 | #region Appearance/ Wearables Methods | 605 | #region Appearance/ Wearables Methods |
580 | 606 | ||
581 | /// <summary> | 607 | /// <summary> |