Implement appearance and current outfit services (#65)
Some checks failed
Native code generation / deterministic (push) Failing after 2m19s
Imaging and meshing gate / native (push) Failing after 1m26s
Native Rust workspace compile / compile (push) Failing after 2m11s

This commit is contained in:
2026-08-10 08:58:29 +00:00
parent 52f62d8c39
commit a9927fcfcb
13 changed files with 2900 additions and 242 deletions

View File

@@ -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 {