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(); return args; }
public override OSDMap ToOSD() { OSDMap result = new OSDMap(); result ["FirstName"] = FirstName; result ["LastName"] = LastName; result ["Name"] = Name; result ["Email"] = Email; result ["PrincipalID"] = PrincipalID; result ["ScopeID"] = ScopeID; result ["AllScopeIDs"] = AllScopeIDs.ToOSDArray(); result ["Created"] = Created; result ["UserLevel"] = UserLevel; result ["UserFlags"] = UserFlags; return(result); }
public OSDMap PackRegionInfoData(bool secure) { 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()); args["internal_ep_address"] = OSD.FromString(InternalEndPoint.Address.ToString()); args["internal_ep_port"] = OSD.FromString(InternalEndPoint.Port.ToString()); if (RegionType != String.Empty) { args["region_type"] = OSD.FromString(RegionType); } args["password"] = OSD.FromUUID(Password); args["region_size_x"] = OSD.FromInteger(RegionSizeX); args["region_size_y"] = OSD.FromInteger(RegionSizeY); args["region_size_z"] = OSD.FromInteger(RegionSizeZ); #if (!ISWIN) OSDArray ports = new OSDArray(UDPPorts.ConvertAll <OSD>(delegate(int a) { return(a); })); #else OSDArray ports = new OSDArray(UDPPorts.ConvertAll <OSD>(a => a)); #endif args["UDPPorts"] = ports; args["InfiniteRegion"] = OSD.FromBoolean(InfiniteRegion); if (secure) { args["disabled"] = OSD.FromBoolean(Disabled); 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["trust_binaries_from_foreign_sims"] = OSD.FromBoolean(TrustBinariesFromForeignSims); args["allow_script_crossing"] = OSD.FromBoolean(AllowScriptCrossing); args["allow_physical_prims"] = OSD.FromBoolean(AllowPhysicalPrims); args["startupType"] = OSD.FromInteger((int)Startup); args["RegionSettings"] = RegionSettings.ToOSD(); } return(args); }
public override OSDMap ToOSD() { OSDMap map = new OSDMap(); map["uuid"] = RegionID; map["locX"] = RegionLocX; map["locY"] = RegionLocY; map["locZ"] = RegionLocZ; map["regionName"] = RegionName; map["regionType"] = RegionType; map["serverIP"] = ExternalHostName; //ExternalEndPoint.Address.ToString(); map["serverHttpPort"] = HttpPort; map["serverURI"] = ServerURI; if (InternalEndPoint != null) { map["serverPort"] = InternalEndPoint.Port; } map["regionMapTexture"] = TerrainImage; map["regionTerrainTexture"] = TerrainMapImage; map["ParcelMapImage"] = ParcelMapImage; map["access"] = (int)Access; map["owner_uuid"] = EstateOwner; map["AuthToken"] = AuthToken; map["sizeX"] = RegionSizeX; map["sizeY"] = RegionSizeY; map["sizeZ"] = RegionSizeZ; map["LastSeen"] = LastSeen; map["SessionID"] = SessionID; map["ScopeID"] = ScopeID; map["AllScopeIDs"] = AllScopeIDs.ToOSDArray(); map["Flags"] = Flags; map["GenericMap"] = GenericMap; map["EstateOwner"] = EstateOwner; // We send it along too so that it doesn't need resolved on the other end if (ExternalEndPoint != null) { map["remoteEndPointIP"] = ExternalEndPoint.Address.GetAddressBytes(); map["remoteEndPointPort"] = ExternalEndPoint.Port; } return(map); }
public override OSDMap ToOSD() { OSDMap result = new OSDMap(); result["FirstName"] = FirstName; result["LastName"] = LastName; result["Name"] = Name; result["Email"] = Email; result["PrincipalID"] = PrincipalID; result["ScopeID"] = ScopeID; result["AllScopeIDs"] = AllScopeIDs.ToOSDArray(); result["Created"] = Created; result["UserLevel"] = UserLevel; result["UserFlags"] = UserFlags; result["UserTitle"] = UserTitle; string str = ServiceURLs.Aggregate(string.Empty, (current, kvp) => current + (kvp.Key + "*" + (kvp.Value ?? "") + ";")); result["ServiceURLs"] = str; return(result); }