From ea82ee3f5bb5faad481b3ed0a2cb187fe2795dd4 Mon Sep 17 00:00:00 2001 From: qode Date: Fri, 3 Nov 2006 20:19:49 +0000 Subject: [PATCH] *Added (string) NetworkManager.StartLocation(string sim, int x, int y, int z) **This can be used in the newly created DefaultLoginValues(string first, string last, string password, string StartLocation, string useragent, string author) git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@495 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife-cs/NetworkManager.cs | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/libsecondlife-cs/NetworkManager.cs b/libsecondlife-cs/NetworkManager.cs index 4a2146dc..a4c89751 100644 --- a/libsecondlife-cs/NetworkManager.cs +++ b/libsecondlife-cs/NetworkManager.cs @@ -722,7 +722,21 @@ namespace libsecondlife throw new NotConnectedException(); } } + /// + /// Use this if you want to login to a specific location + /// + /// + /// + /// + /// + /// string with a value that can be used in the start field in .DefaultLoginValues() + public static string StartLocation(string sim, int x, int y, int z) + { + //uri:sim&x&y&z + return "uri:" + sim + "&" + x + "&" + y + "&" + z; + } + /// /// /// @@ -738,7 +752,21 @@ namespace libsecondlife return DefaultLoginValues(firstName, lastName, password, "00:00:00:00:00:00", "last", 1, 50, 50, 50, "Win", "0", userAgent, author); } - + /// + /// + /// + /// + /// + /// + /// + /// + /// + public static Dictionary DefaultLoginValues( + string firstName, string lastName, string password, string startLocation, string userAgent, string author) + { + return DefaultLoginValues(firstName, lastName, password, "00:00:00:00:00:00", startLocation, + 1, 50, 50, 50, "Win", "0", userAgent, author); + } public static Dictionary DefaultLoginValues(string firstName, string lastName, string password, string mac, string startLocation, string platform, string viewerDigest, string userAgent, string author)