You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Système de modules optionnels payantspubstructAddonManager{available_addons:Vec<Addon>,installed_addons:Vec<InstalledAddon>,}pubstructAddon{pubid:String,pubname:String,pubdescription:String,pubprice:Decimal,pubfeatures:Vec<Feature>,pubicon:Option<Vec<u8>>,}pubstructInstalledAddon{pubaddon_id:String,publicense_key:String,pubinstalled_at:DateTime<Utc>,}implAddonManager{pubfnis_feature_unlocked(&self,feature:Feature) -> bool{// Vérifier si un addon installé débloque cette featureself.installed_addons.iter().any(|installed| {self.available_addons.iter().find(|a| a.id == installed.addon_id).map(|addon| addon.features.contains(&feature)).unwrap_or(false)})}}