using System.Collections.Immutable; using Barotrauma.LuaCs.Data; using FluentResults; namespace Barotrauma.LuaCs; public interface IUIStylesService : IReusableService { /// /// Gets the first loaded . /// /// The target /// The targets as specified in the ModConfig.xml. /// The asset's name as specified in the styles XML file. /// A indicating success, and the target if succeeded. public Result GetColor(ContentPackage package, string internalName, string assetName); /// /// Gets the loaded . /// /// The target /// The targets as specified in the ModConfig.xml. /// The asset's name as specified in the styles XML file. /// A indicating success, and the target if succeeded. public Result GetCursor(ContentPackage package, string internalName, string assetName); /// /// Gets the loaded . /// /// The target /// The targets as specified in the ModConfig.xml. /// The asset's name as specified in the styles XML file. /// A indicating success, and the target if succeeded. public Result GetFont(ContentPackage package, string internalName, string assetName); /// /// Gets the loaded . /// /// The target /// The targets as specified in the ModConfig.xml. /// The asset's name as specified in the styles XML file. /// A indicating success, and the target if succeeded. public Result GetSprite(ContentPackage package, string internalName, string assetName); /// /// Gets the loaded . /// /// The target /// The targets as specified in the ModConfig.xml. /// The asset's name as specified in the styles XML file. /// A indicating success, and the target if succeeded. public Result GetSpriteSheet(ContentPackage package, string internalName, string assetName); public FluentResults.Result LoadAssets(ImmutableArray resources); public FluentResults.Result UnloadPackages(ImmutableArray packages); public FluentResults.Result UnloadPackage(ContentPackage package); public FluentResults.Result UnloadAllPackages(); }