Implement appearance and current outfit services (#65)
This commit is contained in:
@@ -18,6 +18,7 @@ use libremetaverse_types::{
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::fmt;
|
||||
use std::fs::{self, File, OpenOptions};
|
||||
use std::hash::{Hash, Hasher};
|
||||
use std::io::{Read, Write};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::sync::{Arc, RwLock, Weak};
|
||||
@@ -306,6 +307,24 @@ impl PartialEq for InventoryItem {
|
||||
|
||||
impl Eq for InventoryItem {}
|
||||
|
||||
impl Hash for InventoryItem {
|
||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||
self.base.hash(state);
|
||||
self.asset_uuid.hash(state);
|
||||
self.asset_type.hash(state);
|
||||
self.inventory_type.hash(state);
|
||||
self.description.hash(state);
|
||||
self.group_id.hash(state);
|
||||
self.group_owned.hash(state);
|
||||
self.sale_price.hash(state);
|
||||
self.sale_type.hash(state);
|
||||
self.flags.hash(state);
|
||||
self.creation_date.hash(state);
|
||||
self.last_owner_id.hash(state);
|
||||
self.permissions.hash(state);
|
||||
}
|
||||
}
|
||||
|
||||
impl InventoryItem {
|
||||
fn with_type(inventory_type: InventoryType, uuid: UUID) -> Self {
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user