mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
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:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user