[Milestone] PackageManagementService completed.
- ContentPackageInfoLookup Service completed. - Implemented ModConfigService.cs - Implemented some of the resource processors.
This commit is contained in:
+14
-7
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
using Barotrauma.LuaCs.Data;
|
||||
@@ -6,18 +7,24 @@ using FluentResults;
|
||||
|
||||
namespace Barotrauma.LuaCs.Services.Processing;
|
||||
|
||||
#region TypeDef
|
||||
|
||||
public interface IConverterService<in TSrc, TOut> : IReusableService
|
||||
public interface IConverterService<in TSrc, TOut> : IService
|
||||
{
|
||||
Result<TOut> TryParseResource(TSrc src);
|
||||
Result<TOut> TryParseResources(IEnumerable<TSrc> sources);
|
||||
ImmutableArray<Result<TOut>> TryParseResources(IEnumerable<TSrc> sources);
|
||||
}
|
||||
|
||||
public interface IConverterServiceAsync<in TSrc, TOut> : IReusableService
|
||||
public interface IConverterServiceAsync<in TSrc, TOut> : IService
|
||||
{
|
||||
Task<Result<TOut>> TryParseResourceAsync(TSrc src);
|
||||
Task<Result<TOut>> TryParseResourcesAsync(IEnumerable<TSrc> sources);
|
||||
Task<ImmutableArray<Result<TOut>>> TryParseResourcesAsync(IEnumerable<TSrc> sources);
|
||||
}
|
||||
|
||||
#endregion
|
||||
public interface IProcessorService<in TSrc, TOut> : IService
|
||||
{
|
||||
TOut Process(TSrc src);
|
||||
}
|
||||
|
||||
public interface IProcessorServiceAsync<in TSrc, TOut> : IService
|
||||
{
|
||||
Task<TOut> ProcessAsync(TSrc src);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user