From 375163a6fece8b3a57c7555246abe8338223a599 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 29 Apr 2008 14:04:55 +0000 Subject: * Spring cleaning. * Added new generic "Location" class to handle 2D integer locations. Going to use it to replace all RegionHandle and X,Y coordinate references throughout the entire project. You have been warned. --- OpenSim/Framework/JId.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'OpenSim/Framework/JId.cs') diff --git a/OpenSim/Framework/JId.cs b/OpenSim/Framework/JId.cs index dac4838..00e8ef1 100644 --- a/OpenSim/Framework/JId.cs +++ b/OpenSim/Framework/JId.cs @@ -31,15 +31,15 @@ namespace OpenSim.Framework { public class JId { + public string resource = String.Empty; public string ServerIP = String.Empty; public int ServerPort = 0; public string username = String.Empty; - public string resource = String.Empty; public JId() { - } + public JId(string sJId) { // user@address:port/resource @@ -53,14 +53,13 @@ namespace OpenSim.Framework string[] resourcesplit = serversplit[1].Split('/'); ServerPort = Convert.ToInt32(resourcesplit[0]); - + if (resourcesplit.GetUpperBound(0) == 2) resource = resourcesplit[1]; username = jidsplit[0]; - } } } } -} +} \ No newline at end of file -- cgit v1.1