public OSDMap ToOSD()
{
OSDMap map = new OSDMap();
map["AgentLimit"] = AgentLimit;
map["AllowDamage"] = AllowDamage;
map["AllowLandJoinDivide"] = AllowLandJoinDivide;
map["AllowLandResell"] = AllowLandResell;
map["BlockFly"] = BlockFly;
map["BlockShowInSearch"] = BlockShowInSearch;
map["BlockTerraform"] = BlockTerraform;
map["Covenant"] = Covenant;
map["CovenantLastUpdated"] = CovenantLastUpdated;
map["DisableCollisions"] = DisableCollisions;
map["DisablePhysics"] = DisablePhysics;
map["DisableScripts"] = DisableScripts;
map["Elevation1NE"] = Elevation1NE;
map["Elevation1NW"] = Elevation1NW;
map["Elevation1SE"] = Elevation1SE;
map["Elevation1SW"] = Elevation1SW;
map["Elevation2NE"] = Elevation2NE;
map["Elevation2NW"] = Elevation2NW;
map["Elevation2SE"] = Elevation2SE;
map["Elevation2SW"] = Elevation2SW;
map["FixedSun"] = FixedSun;
map["LoadedCreationDateTime"] = LoadedCreationDateTime;
map["LoadedCreationID"] = LoadedCreationID;
map["Maturity"] = Maturity;
map["MinimumAge"] = MinimumAge;
map["ObjectBonus"] = ObjectBonus;
map["RegionUUID"] = RegionUUID;
map["RestrictPushing"] = RestrictPushing;
map["Sandbox"] = Sandbox;
map["SunPosition"] = SunPosition;
map["SunVector"] = SunVector;
map["TerrainImageID"] = TerrainImageID;
map["ParcelMapImageID"] = ParcelMapImageID;
map["TerrainLowerLimit"] = TerrainLowerLimit;
map["TerrainMapImageID"] = TerrainMapImageID;
map["TerrainMapLastRegenerated"] = TerrainMapLastRegenerated;
map["TerrainRaiseLimit"] = TerrainRaiseLimit;
map["TerrainTexture1"] = TerrainTexture1;
map["TerrainTexture2"] = TerrainTexture2;
map["TerrainTexture3"] = TerrainTexture3;
map["TerrainTexture4"] = TerrainTexture4;
map["UseEstateSun"] = UseEstateSun;
map["WaterHeight"] = WaterHeight;
if (TeleHub != null)
map["Telehub"] = TeleHub.ToOSD();
return map;
}
public OSDMap PackRegionInfoData() { OSDMap args = new OSDMap(); args["region_id"] = OSD.FromUUID(RegionID); if ((RegionName != null) && !RegionName.Equals("")) { args["region_name"] = OSD.FromString(RegionName); } args["region_xloc"] = OSD.FromString(RegionLocX.ToString()); args["region_yloc"] = OSD.FromString(RegionLocY.ToString()); if (RegionType != string.Empty) { args["region_type"] = OSD.FromString(RegionType); } args["region_size_x"] = OSD.FromInteger(RegionSizeX); args["region_size_y"] = OSD.FromInteger(RegionSizeY); args["region_size_z"] = OSD.FromInteger(RegionSizeZ); args["InfiniteRegion"] = OSD.FromBoolean(InfiniteRegion); args["scope_id"] = OSD.FromUUID(ScopeID); args["all_scope_ids"] = AllScopeIDs.ToOSDArray(); args["object_capacity"] = OSD.FromInteger(m_objectCapacity); args["region_type"] = OSD.FromString(RegionType); args["see_into_this_sim_from_neighbor"] = OSD.FromBoolean(SeeIntoThisSimFromNeighbor); args["startupType"] = OSD.FromInteger((int)Startup); args["RegionSettings"] = RegionSettings.ToOSD(); args["GridSecureSessionID"] = GridSecureSessionID; if (EnvironmentSettings != null) { args["EnvironmentSettings"] = EnvironmentSettings; } args["OpenRegionSettings"] = OpenRegionSettings.ToOSD(); if (RegionTerrain != string.Empty) { args["region_terrain"] = OSD.FromString(RegionTerrain); } args["region_area"] = OSD.FromInteger(RegionArea); return(args); }