aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Serialization/External
diff options
context:
space:
mode:
authordr scofield (aka dirk husemann)2009-10-01 09:47:45 +0200
committerdr scofield (aka dirk husemann)2009-10-01 09:47:45 +0200
commit40cf840df26e66fca8ab81d602fd67ff1d2a6afa (patch)
tree5cc8d3ffafa5f4f7ac441aec49664bbc133912df /OpenSim/Framework/Serialization/External
parentadding skeleton test case for LandDataSerializer [w-i-p] (diff)
downloadopensim-SC_OLD-40cf840df26e66fca8ab81d602fd67ff1d2a6afa.zip
opensim-SC_OLD-40cf840df26e66fca8ab81d602fd67ff1d2a6afa.tar.gz
opensim-SC_OLD-40cf840df26e66fca8ab81d602fd67ff1d2a6afa.tar.bz2
opensim-SC_OLD-40cf840df26e66fca8ab81d602fd67ff1d2a6afa.tar.xz
adding testcase for LandDataSerializer; fixing LandDataSerializer ;-)
Diffstat (limited to 'OpenSim/Framework/Serialization/External')
-rw-r--r--OpenSim/Framework/Serialization/External/LandDataSerializer.cs64
1 files changed, 32 insertions, 32 deletions
diff --git a/OpenSim/Framework/Serialization/External/LandDataSerializer.cs b/OpenSim/Framework/Serialization/External/LandDataSerializer.cs
index 6bfae41..0d91859 100644
--- a/OpenSim/Framework/Serialization/External/LandDataSerializer.cs
+++ b/OpenSim/Framework/Serialization/External/LandDataSerializer.cs
@@ -132,47 +132,47 @@ namespace OpenSim.Framework.Serialization.External
132 xtw.WriteStartDocument(); 132 xtw.WriteStartDocument();
133 xtw.WriteStartElement("LandData"); 133 xtw.WriteStartElement("LandData");
134 134
135 xtw.WriteElementString("Area", landData.Area.ToString()); 135 xtw.WriteElementString("Area", Convert.ToString(landData.Area));
136 xtw.WriteElementString("AuctionID", landData.AuctionID.ToString()); 136 xtw.WriteElementString("AuctionID", Convert.ToString(landData.AuctionID));
137 xtw.WriteElementString("AuthBuyerID", landData.AuthBuyerID.ToString()); 137 xtw.WriteElementString("AuthBuyerID", landData.AuthBuyerID.ToString());
138 xtw.WriteElementString("Category", landData.Category.ToString()); 138 xtw.WriteElementString("Category", Convert.ToString(landData.Category));
139 xtw.WriteElementString("ClaimDate", landData.ClaimDate.ToString()); 139 xtw.WriteElementString("ClaimDate", Convert.ToString(landData.ClaimDate));
140 xtw.WriteElementString("ClaimPrice", landData.ClaimPrice.ToString()); 140 xtw.WriteElementString("ClaimPrice", Convert.ToString(landData.ClaimPrice));
141 xtw.WriteElementString("GlobalID", landData.GlobalID.ToString()); 141 xtw.WriteElementString("GlobalID", landData.GlobalID.ToString());
142 xtw.WriteElementString("GroupID", landData.GroupID.ToString()); 142 xtw.WriteElementString("GroupID", landData.GroupID.ToString());
143 xtw.WriteElementString("IsGroupOwned", landData.IsGroupOwned.ToString()); 143 xtw.WriteElementString("IsGroupOwned", Convert.ToString(landData.IsGroupOwned));
144 xtw.WriteElementString("Bitmap", landData.Bitmap.ToString()); 144 xtw.WriteElementString("Bitmap", Convert.ToBase64String(landData.Bitmap));
145 xtw.WriteElementString("Description", landData.Description); 145 xtw.WriteElementString("Description", landData.Description);
146 xtw.WriteElementString("Flags", landData.Flags.ToString()); 146 xtw.WriteElementString("Flags", Convert.ToString(landData.Flags));
147 xtw.WriteElementString("LandingType", landData.LandingType.ToString()); 147 xtw.WriteElementString("LandingType", Convert.ToString(landData.LandingType));
148 xtw.WriteElementString("Name", landData.Name); 148 xtw.WriteElementString("Name", landData.Name);
149 xtw.WriteElementString("Status", landData.Status.ToString()); 149 xtw.WriteElementString("Status", Convert.ToString(landData.Status));
150 xtw.WriteElementString("LocalID", landData.LocalID.ToString()); 150 xtw.WriteElementString("LocalID", landData.LocalID.ToString());
151 xtw.WriteElementString("MediaAutoScale", landData.MediaAutoScale.ToString()); 151 xtw.WriteElementString("MediaAutoScale", Convert.ToString(landData.MediaAutoScale));
152 xtw.WriteElementString("MediaID", landData.MediaID.ToString()); 152 xtw.WriteElementString("MediaID", landData.MediaID.ToString());
153 xtw.WriteElementString("MediaURL", landData.MediaURL.ToString()); 153 xtw.WriteElementString("MediaURL", landData.MediaURL);
154 xtw.WriteElementString("MusicURL", landData.MusicURL.ToString()); 154 xtw.WriteElementString("MusicURL", landData.MusicURL);
155 xtw.WriteElementString("OwnerID", landData.OwnerID.ToString()); 155 xtw.WriteElementString("OwnerID", landData.OwnerID.ToString());
156 156
157 xtw.WriteStartElement("ParcelAccessList"); 157 xtw.WriteStartElement("ParcelAccessList");
158 foreach(ParcelManager.ParcelAccessEntry pal in landData.ParcelAccessList) 158 foreach(ParcelManager.ParcelAccessEntry pal in landData.ParcelAccessList)
159 { 159 {
160 xtw.WriteStartElement("ParcelAccessEntry"); 160 xtw.WriteStartElement("ParcelAccessEntry");
161 xtw.WriteElementString("AgentID", pal.AgentID.ToString()); 161 xtw.WriteElementString("AgentID", pal.AgentID.ToString());
162 xtw.WriteElementString("Time", pal.Time.ToString()); 162 xtw.WriteElementString("Time", Convert.ToString(pal.Time));
163 xtw.WriteElementString("AccessList", pal.Flags.ToString()); 163 xtw.WriteElementString("AccessList", Convert.ToString(pal.Flags));
164 xtw.WriteEndElement(); 164 xtw.WriteEndElement();
165 } 165 }
166 xtw.WriteEndElement(); 166 xtw.WriteEndElement();
167 167
168 xtw.WriteElementString("PassHours", landData.PassHours.ToString()); 168 xtw.WriteElementString("PassHours", Convert.ToString(landData.PassHours));
169 xtw.WriteElementString("PassPrice", landData.PassPrice.ToString()); 169 xtw.WriteElementString("PassPrice", Convert.ToString(landData.PassPrice));
170 xtw.WriteElementString("SalePrice", landData.SalePrice.ToString()); 170 xtw.WriteElementString("SalePrice", Convert.ToString(landData.SalePrice));
171 xtw.WriteElementString("SnapshotID", landData.SnapshotID.ToString()); 171 xtw.WriteElementString("SnapshotID", landData.SnapshotID.ToString());
172 xtw.WriteElementString("UserLocation", landData.UserLocation.ToString()); 172 xtw.WriteElementString("UserLocation", landData.UserLocation.ToString());
173 xtw.WriteElementString("UserLookAt", landData.UserLookAt.ToString()); 173 xtw.WriteElementString("UserLookAt", landData.UserLookAt.ToString());
174 xtw.WriteElementString("Dwell", landData.Dwell.ToString()); 174 xtw.WriteElementString("Dwell", Convert.ToString(landData.Dwell));
175 xtw.WriteElementString("OtherCleanTime", landData.OtherCleanTime.ToString()); 175 xtw.WriteElementString("OtherCleanTime", Convert.ToString(landData.OtherCleanTime));
176 176
177 xtw.WriteEndElement(); 177 xtw.WriteEndElement();
178 178