aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.API.cs
diff options
context:
space:
mode:
authorMW2007-07-19 10:44:19 +0000
committerMW2007-07-19 10:44:19 +0000
commit0b6e332e16cd7df588d3502318a722706d78928c (patch)
tree7e806ab6b6a4f316d5928443a0006a434ef3c451 /OpenSim/Region/ClientStack/ClientView.API.cs
parent* Fixing sandbox mode crash caused by removal of LocalStorage during cleanup ... (diff)
downloadopensim-SC_OLD-0b6e332e16cd7df588d3502318a722706d78928c.zip
opensim-SC_OLD-0b6e332e16cd7df588d3502318a722706d78928c.tar.gz
opensim-SC_OLD-0b6e332e16cd7df588d3502318a722706d78928c.tar.bz2
opensim-SC_OLD-0b6e332e16cd7df588d3502318a722706d78928c.tar.xz
Added some Alert methods to Scene , and a console command handler. So from the console to send alerts use : alert general <message> , for a instance wide message , or use alert firstname secondname <message> to send a alert to one user. (TODO: add region wide messages).
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.API.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.API.cs26
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;
36using OpenSim.Framework.Interfaces; 36using OpenSim.Framework.Interfaces;
37using OpenSim.Framework.Types; 37using OpenSim.Framework.Types;
38using OpenSim.Framework.Data; 38using OpenSim.Framework.Data;
39using OpenSim.Framework.Utilities;
39 40
40namespace OpenSim.Region.ClientStack 41namespace 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>