diff options
author | Teravus Ovares | 2007-12-07 15:56:16 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-12-07 15:56:16 +0000 |
commit | cbc8a27b341a6b85ddf143d5ed381f3db3d9620b (patch) | |
tree | ad2389c68d2703e57a4d92678e325d769477d8ea /OpenSim | |
parent | * miniscule changes just to keep myself in synch (diff) | |
download | opensim-SC-cbc8a27b341a6b85ddf143d5ed381f3db3d9620b.zip opensim-SC-cbc8a27b341a6b85ddf143d5ed381f3db3d9620b.tar.gz opensim-SC-cbc8a27b341a6b85ddf143d5ed381f3db3d9620b.tar.bz2 opensim-SC-cbc8a27b341a6b85ddf143d5ed381f3db3d9620b.tar.xz |
* Added class sAgentCircuitData and unmarked AgentCircuitData as Serializable.
* Created converter constructors between sAgentCircuitData and AgentCircuitData
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/AgentCircuitData.cs | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/OpenSim/Framework/AgentCircuitData.cs b/OpenSim/Framework/AgentCircuitData.cs index 3f17ca8..2c3a8ba 100644 --- a/OpenSim/Framework/AgentCircuitData.cs +++ b/OpenSim/Framework/AgentCircuitData.cs | |||
@@ -30,12 +30,25 @@ using libsecondlife; | |||
30 | 30 | ||
31 | namespace OpenSim.Framework | 31 | namespace OpenSim.Framework |
32 | { | 32 | { |
33 | [Serializable] | ||
34 | public class AgentCircuitData | 33 | public class AgentCircuitData |
35 | { | 34 | { |
36 | public AgentCircuitData() | 35 | public AgentCircuitData() |
37 | { | 36 | { |
38 | } | 37 | } |
38 | public AgentCircuitData(sAgentCircuitData cAgent) | ||
39 | { | ||
40 | AgentID = new LLUUID(cAgent.AgentID); | ||
41 | SessionID = new LLUUID(cAgent.SessionID); | ||
42 | SecureSessionID = new LLUUID(cAgent.SecureSessionID); | ||
43 | startpos = cAgent.startpos; | ||
44 | firstname = cAgent.firstname; | ||
45 | lastname = cAgent.lastname; | ||
46 | circuitcode = cAgent.circuitcode; | ||
47 | child = cAgent.child; | ||
48 | InventoryFolder = new LLUUID(cAgent.InventoryFolder); | ||
49 | BaseFolder = new LLUUID(cAgent.BaseFolder); | ||
50 | CapsPath = cAgent.CapsPath; | ||
51 | } | ||
39 | 52 | ||
40 | public LLUUID AgentID; | 53 | public LLUUID AgentID; |
41 | public LLUUID SessionID; | 54 | public LLUUID SessionID; |
@@ -49,4 +62,40 @@ namespace OpenSim.Framework | |||
49 | public LLUUID BaseFolder; | 62 | public LLUUID BaseFolder; |
50 | public string CapsPath = ""; | 63 | public string CapsPath = ""; |
51 | } | 64 | } |
65 | |||
66 | [Serializable] | ||
67 | public class sAgentCircuitData | ||
68 | { | ||
69 | public sAgentCircuitData() | ||
70 | { | ||
71 | } | ||
72 | public sAgentCircuitData(AgentCircuitData cAgent) | ||
73 | { | ||
74 | AgentID = cAgent.AgentID.UUID; | ||
75 | SessionID = cAgent.SessionID.UUID; | ||
76 | SecureSessionID = cAgent.SecureSessionID.UUID; | ||
77 | startpos = cAgent.startpos; | ||
78 | firstname = cAgent.firstname; | ||
79 | lastname = cAgent.lastname; | ||
80 | circuitcode = cAgent.circuitcode; | ||
81 | child = cAgent.child; | ||
82 | InventoryFolder = cAgent.InventoryFolder.UUID; | ||
83 | BaseFolder = cAgent.BaseFolder.UUID; | ||
84 | CapsPath = cAgent.CapsPath; | ||
85 | } | ||
86 | public Guid AgentID; | ||
87 | public Guid SessionID; | ||
88 | public Guid SecureSessionID; | ||
89 | public LLVector3 startpos; | ||
90 | public string firstname; | ||
91 | public string lastname; | ||
92 | public uint circuitcode; | ||
93 | public bool child; | ||
94 | public Guid InventoryFolder; | ||
95 | public Guid BaseFolder; | ||
96 | public string CapsPath = ""; | ||
97 | |||
98 | |||
99 | |||
100 | } | ||
52 | } \ No newline at end of file | 101 | } \ No newline at end of file |