add config option automatic_gods. With this option true, users that can be Gods will have that level automaticly without the need request on viewer; Propagate current god level to nearby regions (with local checks)

This commit is contained in:
UbitUmarov
2017-01-05 21:21:15 +00:00
parent 1a35af229c
commit 1fb01a0099
4 changed files with 43 additions and 9 deletions

View File

@@ -89,6 +89,7 @@ namespace OpenSim.Framework
public Vector3 AtAxis;
public Vector3 LeftAxis;
public Vector3 UpAxis;
public int GodLevel;
public bool ChangedGrid;
// This probably shouldn't be here
@@ -116,6 +117,7 @@ namespace OpenSim.Framework
args["far"] = OSD.FromReal(Far);
args["changed_grid"] = OSD.FromBoolean(ChangedGrid);
args["god_level"] = OSD.FromString(GodLevel.ToString());
if ((Throttles != null) && (Throttles.Length > 0))
args["throttles"] = OSD.FromBinary(Throttles);
@@ -174,6 +176,9 @@ namespace OpenSim.Framework
if (args["changed_grid"] != null)
ChangedGrid = args["changed_grid"].AsBoolean();
if (args["god_level"] != null)
Int32.TryParse(args["god_level"].AsString(), out GodLevel);
if (args["far"] != null)
Far = (float)(args["far"].AsReal());