feat(gen1): llGridSay cross-estate cube communication over authenticated NexBus (#332)
* feat(gen1): grid-wide script message router interface * build(gen1): include new grid script router interface * feat(gen1): implement grid-wide llGridSay scripting API * feat(gen1): implement grid-wide llGridSay scripting API * feat(gen1): implement grid-wide llGridSay scripting API * feat(gen1): relay authenticated llGridSay across estates via NexBus * config(gen1): add opt-in global script messaging on authenticated NexBus * config(gen1): add opt-in global script messaging on authenticated NexBus * config(gen1): add opt-in global script messaging on authenticated NexBus * example(gen1): cross-estate beep cube using llGridSay * test(gen1): guard grid script authorization and NexBus fanout contract * ci(gen1): verify llGridSay protections on every push * docs(gen1): grid-wide llGridSay cube protocol, permissions and staging acceptance * docs(gen1): distinguish example implementation from live validation
This commit is contained in:
1 parent
4b32646bf2
commit
da2011efbd
13 files changed
+406
-1
No files matched your search
@@ -1339,6 +1339,40 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
message);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// OpenGenesisLINK-only, opt-in grid-wide object chat. All security and
|
||||
/// fanout decisions belong to the NodeAgent router; this API never
|
||||
/// bypasses that router or exposes a public HTTP broadcast.
|
||||
/// </summary>
|
||||
public void llGridSay(int channelID, string text)
|
||||
{
|
||||
if (channelID == 0 || channelID == ScriptBaseClass.DEBUG_CHANNEL)
|
||||
{
|
||||
Error("llGridSay", "Channel 0 and DEBUG_CHANNEL are not allowed");
|
||||
return;
|
||||
}
|
||||
|
||||
IGridScriptMessageRouter router =
|
||||
World.RequestModuleInterface<IGridScriptMessageRouter>();
|
||||
if (router == null)
|
||||
{
|
||||
Error("llGridSay", "Grid-wide messaging is not enabled on this simulator");
|
||||
return;
|
||||
}
|
||||
|
||||
byte[] payload = Utils.StringToBytesNoTerm(text ?? string.Empty, 1023);
|
||||
if (!router.TryBroadcastGridMessage(
|
||||
World.RegionInfo.RegionID,
|
||||
m_host.UUID,
|
||||
m_host.OwnerID,
|
||||
m_host.Name,
|
||||
channelID,
|
||||
Util.UTF8.GetString(payload)))
|
||||
{
|
||||
Error("llGridSay", "Grid-wide delivery refused by server policy");
|
||||
}
|
||||
}
|
||||
|
||||
public void llRegionSayTo(string target, int channel, string msg)
|
||||
{
|
||||
if (channel == ScriptBaseClass.DEBUG_CHANNEL)
|
||||
|
||||
@@ -320,6 +320,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
|
||||
void llRefreshPrimURL();
|
||||
void llRegionSay(int channelID, string text);
|
||||
void llEstateSay(int channelID, string text);
|
||||
void llGridSay(int channelID, string text);
|
||||
void llRegionSayTo(string target, int channelID, string text);
|
||||
void llReleaseCamera(string avatar);
|
||||
void llReleaseControls();
|
||||
|
||||
@@ -1617,6 +1617,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
m_LSL_Functions.llEstateSay(channelID, text);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void llGridSay(int channelID, string text)
|
||||
{
|
||||
m_LSL_Functions.llGridSay(channelID, text);
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public void llRegionSayTo(string key, int channelID, string text)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user