Ejemplo n.º 1
0
 public void FromOSD(OSDMap map)
 {
     AgentLimit             = map["AgentLimit"];
     AllowLandJoinDivide    = map["AllowLandJoinDivide"];
     AllowLandResell        = map["AllowLandResell"];
     BlockFly               = map["BlockFly"];
     BlockShowInSearch      = map["BlockShowInSearch"];
     BlockTerraform         = map["BlockTerraform"];
     Covenant               = map["Covenant"];
     CovenantLastUpdated    = map["CovenantLastUpdated"];
     DisableCollisions      = map["DisableCollisions"];
     DisablePhysics         = map["DisablePhysics"];
     DisableScripts         = map["DisableScripts"];
     Elevation1NE           = map["Elevation1NE"];
     Elevation1NW           = map["Elevation1NW"];
     Elevation1SE           = map["Elevation1SE"];
     Elevation1SW           = map["Elevation1SW"];
     Elevation2NE           = map["Elevation2NE"];
     Elevation2NW           = map["Elevation2NW"];
     Elevation2SE           = map["Elevation2SE"];
     Elevation2SW           = map["Elevation2SW"];
     FixedSun               = map["FixedSun"];
     LoadedCreationDateTime = map["LoadedCreationDateTime"];
     LoadedCreationID       = map["LoadedCreationID"];
     Maturity               = map["Maturity"];
     MinimumAge             = map["MinimumAge"];
     ObjectBonus            = map["ObjectBonus"];
     RegionUUID             = map["RegionUUID"];
     RestrictPushing        = map["RestrictPushing"];
     Sandbox                   = map["Sandbox"];
     SunPosition               = map["SunPosition"];
     SunVector                 = map["SunVector"];
     TerrainImageID            = map["TerrainImageID"];
     TerrainMapImageID         = map["TerrainMapImageID"];
     TerrainMapLastRegenerated = map["TerrainMapLastRegenerated"];
     ParcelMapImageID          = map["ParcelMapImageID"];
     TerrainLowerLimit         = map["TerrainLowerLimit"];
     TerrainRaiseLimit         = map["TerrainRaiseLimit"];
     TerrainTexture1           = map["TerrainTexture1"];
     TerrainTexture2           = map["TerrainTexture2"];
     TerrainTexture3           = map["TerrainTexture3"];
     TerrainTexture4           = map["TerrainTexture4"];
     UseEstateSun              = map["UseEstateSun"];
     WaterHeight               = map["WaterHeight"];
     if (map.ContainsKey("TeleHub"))
     {
         TeleHub = new Telehub();
         TeleHub.FromOSD((OSDMap)map["Telehub"]);
     }
 }
Ejemplo n.º 2
0
        public Telehub FindTelehub(UUID regionID, ulong Regionhandle)
        {
            foreach (string m_ServerURI in m_ServerURIs)
            {
                Dictionary <string, OSDMap> maps = new Dictionary <string, OSDMap>();
                SimianUtils.GetGenericEntries(regionID, "RegionTelehub", m_ServerURI, out maps);

                List <OSDMap> listMaps = new List <OSDMap>(maps.Values);
                if (listMaps.Count == 0)
                {
                    continue;
                }

                Telehub t = new Telehub();
                t.FromOSD(listMaps[0]);
                return(t);
            }
            return(null);
        }