diff options
author | Justin Clarke Casey | 2009-05-04 16:15:30 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-05-04 16:15:30 +0000 |
commit | a61cbab799886e43749bc4d0803e579fec000f4c (patch) | |
tree | be4e32c991268d54c7d6b2d70edd49ac9c816265 /OpenSim/Framework/InventoryItemBase.cs | |
parent | * minor: remove some mono compiler warnings, minor cleanup (diff) | |
download | opensim-SC_OLD-a61cbab799886e43749bc4d0803e579fec000f4c.zip opensim-SC_OLD-a61cbab799886e43749bc4d0803e579fec000f4c.tar.gz opensim-SC_OLD-a61cbab799886e43749bc4d0803e579fec000f4c.tar.bz2 opensim-SC_OLD-a61cbab799886e43749bc4d0803e579fec000f4c.tar.xz |
* Insert profile references for creators for items saved into iars
Diffstat (limited to 'OpenSim/Framework/InventoryItemBase.cs')
-rw-r--r-- | OpenSim/Framework/InventoryItemBase.cs | 75 |
1 files changed, 32 insertions, 43 deletions
diff --git a/OpenSim/Framework/InventoryItemBase.cs b/OpenSim/Framework/InventoryItemBase.cs index b14ce7f..29142af 100644 --- a/OpenSim/Framework/InventoryItemBase.cs +++ b/OpenSim/Framework/InventoryItemBase.cs | |||
@@ -35,14 +35,14 @@ namespace OpenSim.Framework | |||
35 | /// </summary> | 35 | /// </summary> |
36 | public class InventoryItemBase : InventoryNodeBase, ICloneable | 36 | public class InventoryItemBase : InventoryNodeBase, ICloneable |
37 | { | 37 | { |
38 | /// <summary> | 38 | /// <value> |
39 | /// The inventory type of the item. This is slightly different from the asset type in some situations. | 39 | /// The inventory type of the item. This is slightly different from the asset type in some situations. |
40 | /// </summary> | 40 | /// </value> |
41 | public int InvType; | 41 | public int InvType; |
42 | 42 | ||
43 | /// <summary> | 43 | /// <value> |
44 | /// The folder this item is contained in | 44 | /// The folder this item is contained in |
45 | /// </summary> | 45 | /// </value> |
46 | public UUID Folder; | 46 | public UUID Folder; |
47 | 47 | ||
48 | /// <value> | 48 | /// <value> |
@@ -69,9 +69,9 @@ namespace OpenSim.Framework | |||
69 | /// </value> | 69 | /// </value> |
70 | public UUID CreatorIdAsUuid { get; private set; } | 70 | public UUID CreatorIdAsUuid { get; private set; } |
71 | 71 | ||
72 | /// <summary> | 72 | /// <value> |
73 | /// The description of the inventory item (must be less than 64 characters) | 73 | /// The description of the inventory item (must be less than 64 characters) |
74 | /// </summary> | 74 | /// </value> |
75 | public string Description = String.Empty; | 75 | public string Description = String.Empty; |
76 | 76 | ||
77 | /// <value> | 77 | /// <value> |
@@ -79,80 +79,69 @@ namespace OpenSim.Framework | |||
79 | /// </value> | 79 | /// </value> |
80 | public uint NextPermissions; | 80 | public uint NextPermissions; |
81 | 81 | ||
82 | /// <summary> | 82 | /// <value> |
83 | /// A mask containing permissions for the current owner (cannot be enforced) | 83 | /// A mask containing permissions for the current owner (cannot be enforced) |
84 | /// </summary> | 84 | /// </value> |
85 | public uint CurrentPermissions; | 85 | public uint CurrentPermissions; |
86 | 86 | ||
87 | /// <summary> | 87 | /// <value> |
88 | /// | 88 | /// |
89 | /// </summary> | 89 | /// </value> |
90 | public uint BasePermissions; | 90 | public uint BasePermissions; |
91 | 91 | ||
92 | /// <summary> | 92 | /// <value> |
93 | /// | 93 | /// |
94 | /// </summary> | 94 | /// </value> |
95 | public uint EveryOnePermissions; | 95 | public uint EveryOnePermissions; |
96 | 96 | ||
97 | /// <summary> | 97 | /// <value> |
98 | /// | 98 | /// |
99 | /// </summary> | 99 | /// </value> |
100 | public uint GroupPermissions; | 100 | public uint GroupPermissions; |
101 | 101 | ||
102 | /// <summary> | 102 | /// <value> |
103 | /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc) | 103 | /// This is an enumerated value determining the type of asset (eg Notecard, Sound, Object, etc) |
104 | /// </summary> | 104 | /// </value> |
105 | public int AssetType; | 105 | public int AssetType; |
106 | 106 | ||
107 | /// <summary> | 107 | /// <value> |
108 | /// The UUID of the associated asset on the asset server | 108 | /// The UUID of the associated asset on the asset server |
109 | /// </summary> | 109 | /// </value> |
110 | public UUID AssetID; | 110 | public UUID AssetID; |
111 | 111 | ||
112 | /// <summary> | 112 | /// <value> |
113 | /// | 113 | /// |
114 | /// </summary> | 114 | /// </value> |
115 | public UUID GroupID; | 115 | public UUID GroupID; |
116 | 116 | ||
117 | /// <summary> | 117 | /// <value> |
118 | /// | 118 | /// |
119 | /// </summary> | 119 | /// </value> |
120 | public bool GroupOwned; | 120 | public bool GroupOwned; |
121 | 121 | ||
122 | /// <summary> | 122 | /// <value> |
123 | /// | 123 | /// |
124 | /// </summary> | 124 | /// </value> |
125 | public int SalePrice; | 125 | public int SalePrice; |
126 | 126 | ||
127 | /// <summary> | 127 | /// <value> |
128 | /// | 128 | /// |
129 | /// </summary> | 129 | /// </value> |
130 | public byte SaleType; | 130 | public byte SaleType; |
131 | 131 | ||
132 | /// <summary> | 132 | /// <value> |
133 | /// | 133 | /// |
134 | /// </summary> | 134 | /// </value> |
135 | public uint Flags; | 135 | public uint Flags; |
136 | 136 | ||
137 | /// <summary> | 137 | /// <value> |
138 | /// | 138 | /// |
139 | /// </summary> | 139 | /// </value> |
140 | public int CreationDate; | 140 | public int CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; |
141 | |||
142 | public InventoryItemBase() | ||
143 | { | ||
144 | CreationDate = (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; | ||
145 | } | ||
146 | 141 | ||
147 | public object Clone() | 142 | public object Clone() |
148 | { | 143 | { |
149 | InventoryItemBase clone = new InventoryItemBase(); | 144 | return MemberwiseClone(); |
150 | clone.AssetID = AssetID; | ||
151 | clone.AssetType = AssetType; | ||
152 | clone.BasePermissions = BasePermissions; | ||
153 | clone.CreationDate = CreationDate; | ||
154 | clone.CreatorId = CreatorId; | ||
155 | |||
156 | } | 145 | } |
157 | } | 146 | } |
158 | } | 147 | } |