using Core.Annotations; using Core.Models.Eft.Ragfair; namespace Core.Services; [Injectable(InjectionType.Singleton)] public class RagfairTaxService { public void StoreClientOfferTaxValue(string sessionId, StorePlayerOfferTaxAmountRequestData offer) { throw new NotImplementedException(); } public void ClearStoredOfferTaxById(string offerIdToRemove) { throw new NotImplementedException(); } public Dictionary GetStoredClientOfferTaxValueById(string offerIdToGet) { throw new NotImplementedException(); } /** // This method, along with CalculateItemWorth, is trying to mirror the client-side code found in the method "CalculateTaxPrice". // It's structured to resemble the client-side code as closely as possible - avoid making any big structure changes if it's not necessary. * @param item Item being sold on flea * @param pmcData player profile * @param requirementsValue * @param offerItemCount Number of offers being created * @param sellInOnePiece * @returns Tax in roubles */ public double CalculateTax( Dictionary item, Dictionary pmcData, double requirementsValue, int offerItemCount, bool sellInOnePiece) { throw new NotImplementedException(); } // This method is trying to replicate the item worth calculation method found in the client code. // Any inefficiencies or style issues are intentional and should not be fixed, to preserve the client-side code mirroring. protected double CalculateItemWorth( Dictionary item, Dictionary itemTemplate, int itemCount, Dictionary pmcData, bool isRootItem = true) { throw new NotImplementedException(); } }