diff options
author | Sean Dague | 2008-04-07 23:27:05 +0000 |
---|---|---|
committer | Sean Dague | 2008-04-07 23:27:05 +0000 |
commit | 5ee75998ce4d941efd937848d28f3a4dac6ba6cc (patch) | |
tree | f29a100cb8ab3715c82f0aec4fee9f968f210405 /OpenSim/Framework/InventoryFolderBase.cs | |
parent | Refactor InventoryItemBase to do the following: (diff) | |
download | opensim-SC_OLD-5ee75998ce4d941efd937848d28f3a4dac6ba6cc.zip opensim-SC_OLD-5ee75998ce4d941efd937848d28f3a4dac6ba6cc.tar.gz opensim-SC_OLD-5ee75998ce4d941efd937848d28f3a4dac6ba6cc.tar.bz2 opensim-SC_OLD-5ee75998ce4d941efd937848d28f3a4dac6ba6cc.tar.xz |
more refactoring, this time on InventoryFolderBase
* wrap attributes in properties
* clean up names a little bit
* clean up name styles
Diffstat (limited to 'OpenSim/Framework/InventoryFolderBase.cs')
-rw-r--r-- | OpenSim/Framework/InventoryFolderBase.cs | 66 |
1 files changed, 60 insertions, 6 deletions
diff --git a/OpenSim/Framework/InventoryFolderBase.cs b/OpenSim/Framework/InventoryFolderBase.cs index bf43577..19d3d40 100644 --- a/OpenSim/Framework/InventoryFolderBase.cs +++ b/OpenSim/Framework/InventoryFolderBase.cs | |||
@@ -40,31 +40,85 @@ namespace OpenSim.Framework | |||
40 | /// <summary> | 40 | /// <summary> |
41 | /// The name of the folder (64 characters or less) | 41 | /// The name of the folder (64 characters or less) |
42 | /// </summary> | 42 | /// </summary> |
43 | public string name; | 43 | private string _name; |
44 | 44 | ||
45 | /// <summary> | 45 | /// <summary> |
46 | /// The agent who's inventory this is contained by | 46 | /// The agent who's inventory this is contained by |
47 | /// </summary> | 47 | /// </summary> |
48 | public LLUUID agentID; | 48 | private LLUUID _agentID; |
49 | 49 | ||
50 | /// <summary> | 50 | /// <summary> |
51 | /// The folder this folder is contained in | 51 | /// The folder this folder is contained in |
52 | /// </summary> | 52 | /// </summary> |
53 | public LLUUID parentID; | 53 | private LLUUID _parentID; |
54 | 54 | ||
55 | /// <summary> | 55 | /// <summary> |
56 | /// The UUID for this folder | 56 | /// The UUID for this folder |
57 | /// </summary> | 57 | /// </summary> |
58 | public LLUUID folderID; | 58 | private LLUUID _id; |
59 | 59 | ||
60 | /// <summary> | 60 | /// <summary> |
61 | /// Type of items normally stored in this folder | 61 | /// Type of items normally stored in this folder |
62 | /// </summary> | 62 | /// </summary> |
63 | public short type; | 63 | private short _type; |
64 | 64 | ||
65 | /// <summary> | 65 | /// <summary> |
66 | /// | 66 | /// |
67 | /// </summary> | 67 | /// </summary> |
68 | public ushort version; | 68 | private ushort _version; |
69 | |||
70 | public string Name { | ||
71 | get { | ||
72 | return _name; | ||
73 | } | ||
74 | set { | ||
75 | _name = value; | ||
76 | } | ||
77 | } | ||
78 | |||
79 | public LLUUID AgentID { | ||
80 | get { | ||
81 | return _agentID; | ||
82 | } | ||
83 | set { | ||
84 | _agentID = value; | ||
85 | } | ||
86 | } | ||
87 | |||
88 | public LLUUID ParentID { | ||
89 | get { | ||
90 | return _parentID; | ||
91 | } | ||
92 | set { | ||
93 | _parentID = value; | ||
94 | } | ||
95 | } | ||
96 | |||
97 | public LLUUID ID { | ||
98 | get { | ||
99 | return _id; | ||
100 | } | ||
101 | set { | ||
102 | _id = value; | ||
103 | } | ||
104 | } | ||
105 | |||
106 | public short Type { | ||
107 | get { | ||
108 | return _type; | ||
109 | } | ||
110 | set { | ||
111 | _type = value; | ||
112 | } | ||
113 | } | ||
114 | |||
115 | public ushort Version { | ||
116 | get { | ||
117 | return _version; | ||
118 | } | ||
119 | set { | ||
120 | _version = value; | ||
121 | } | ||
122 | } | ||
69 | } | 123 | } |
70 | } | 124 | } |