mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Starting to clean the house...
* Fixed circular dependency
This commit is contained in:
@@ -41,7 +41,7 @@ namespace OpenSim.Framework.Serialization.External
|
||||
public const int MAJOR_VERSION = 0;
|
||||
public const int MINOR_VERSION = 1;
|
||||
|
||||
public static string Serialize(UserAccount profile)
|
||||
public static string Serialize(UUID userID, string firstName, string lastName)
|
||||
{
|
||||
StringWriter sw = new StringWriter();
|
||||
XmlTextWriter xtw = new XmlTextWriter(sw);
|
||||
@@ -52,8 +52,8 @@ namespace OpenSim.Framework.Serialization.External
|
||||
xtw.WriteAttributeString("major_version", MAJOR_VERSION.ToString());
|
||||
xtw.WriteAttributeString("minor_version", MINOR_VERSION.ToString());
|
||||
|
||||
xtw.WriteElementString("name", profile.FirstName + " " + profile.LastName);
|
||||
xtw.WriteElementString("id", profile.PrincipalID.ToString());
|
||||
xtw.WriteElementString("name", firstName + " " + lastName);
|
||||
xtw.WriteElementString("id", userID.ToString());
|
||||
xtw.WriteElementString("about", "");
|
||||
|
||||
// Not sure if we're storing this yet, need to take a look
|
||||
|
||||
Reference in New Issue
Block a user