Esempio n. 1
0
 public override void FromOSD(OSDMap map)
 {
     PrincipalID = map["PrincipalID"].AsUUID();
     Flags = (IAgentFlags)map["Flags"].AsInteger();
     MaxMaturity = Convert.ToInt32(map["MaxMaturity"].AsInteger());
     MaturityRating = Convert.ToInt32(map["MaturityRating"].AsInteger());
     Language = map["Language"].AsString();
     AcceptTOS = map["AcceptTOS"].AsBoolean();
     LanguageIsPublic = map["LanguageIsPublic"].AsBoolean();
 }
 public override void FromOSD(OSDMap map)
 {
     PrincipalID      = map["PrincipalID"].AsUUID();
     Flags            = (IAgentFlags)map["Flags"].AsInteger();
     MaxMaturity      = Convert.ToInt32(map["MaxMaturity"].AsInteger());
     MaturityRating   = Convert.ToInt32(map["MaturityRating"].AsInteger());
     Language         = map["Language"].AsString();
     AcceptTOS        = map["AcceptTOS"].AsBoolean();
     LanguageIsPublic = map["LanguageIsPublic"].AsBoolean();
     if (map.ContainsKey("OtherAgentInformation"))
     {
         OtherAgentInformation = (OSDMap)OSDParser.DeserializeLLSDXml(map["OtherAgentInformation"].AsString());
     }
 }
Esempio n. 3
0
 public IAgentInfo(Dictionary<string, object> kvp)
 {
     PrincipalID = UUID.Zero;
     if (kvp.ContainsKey("PrincipalID") && kvp["PrincipalID"] != null)
         PrincipalID = new UUID(kvp["PrincipalID"].ToString());
     Flags = 0;
     if (kvp.ContainsKey("Flags") && kvp["Flags"] != null)
         Flags = (IAgentFlags)Convert.ToUInt32(kvp["Flags"].ToString());
     MaxMaturity = 0;
     if (kvp.ContainsKey("MaxMaturity") && kvp["MaxMaturity"] != null)
         MaxMaturity = Convert.ToInt32(kvp["MaxMaturity"].ToString());
     MaturityRating = 0;
     if (kvp.ContainsKey("MaturityRating") && kvp["MaturityRating"] != null)
         MaturityRating = Convert.ToInt32(kvp["MaturityRating"].ToString());
     Language = "";
     if (kvp.ContainsKey("Language") && kvp["Language"] != null)
         Language = kvp["Language"].ToString();
     AcceptTOS = true;
     if (kvp.ContainsKey("AcceptTOS") && kvp["AcceptTOS"] != null)
         AcceptTOS = Convert.ToBoolean(kvp["AcceptTOS"].ToString());
     LanguageIsPublic = true;
     if (kvp.ContainsKey("LanguageIsPublic") && kvp["LanguageIsPublic"] != null)
         LanguageIsPublic = Convert.ToBoolean(kvp["LanguageIsPublic"].ToString());
 }
 public override void FromOSD (OSDMap map)
 {
     PrincipalID = map ["PrincipalID"].AsUUID ();
     Flags = (IAgentFlags)map ["Flags"].AsInteger ();
     AcceptTOS = map ["AcceptTOS"].AsBoolean ();            
     MaturityRating = Convert.ToInt32 (map ["MaturityRating"].AsInteger ());
     MaxMaturity = Convert.ToInt32 (map ["MaxMaturity"].AsInteger ());
     HoverHeight = map ["HoverHeight"].AsReal ();
     Language = map ["Language"].AsString ();
     LanguageIsPublic = map ["LanguageIsPublic"].AsBoolean ();
     PermEveryone = Convert.ToInt32 (map ["PermEveryone"].AsInteger ());
     PermGroup = Convert.ToInt32 (map ["PermGroup"].AsInteger ());
     PermNextOwner = Convert.ToInt32 (map ["PermNextOwner"].AsInteger ());
     if (map.ContainsKey ("OtherAgentInformation"))
         OtherAgentInformation = (OSDMap)OSDParser.DeserializeLLSDXml (map ["OtherAgentInformation"].AsString ());
 }