mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 20:54:16 +01:00
Use external library for API interface and IPC.
This commit is contained in:
parent
b3f048bfe6
commit
918d5db6a6
69 changed files with 4026 additions and 1873 deletions
74
tmp/Ipc/Resolve.cs
Normal file
74
tmp/Ipc/Resolve.cs
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
using System;
|
||||
using Dalamud.Plugin;
|
||||
using Penumbra.Api.Helpers;
|
||||
|
||||
namespace Penumbra.Api;
|
||||
|
||||
public static partial class Ipc
|
||||
{
|
||||
public static class ResolveDefaultPath
|
||||
{
|
||||
public const string Label = $"Penumbra.{nameof( ResolveDefaultPath )}";
|
||||
|
||||
public static FuncProvider< string, string > Provider( DalamudPluginInterface pi, Func< string, string > func )
|
||||
=> new(pi, Label, func);
|
||||
|
||||
public static FuncSubscriber< string, string > Subscriber( DalamudPluginInterface pi )
|
||||
=> new(pi, Label);
|
||||
}
|
||||
|
||||
public static class ResolveInterfacePath
|
||||
{
|
||||
public const string Label = $"Penumbra.{nameof( ResolveInterfacePath )}";
|
||||
|
||||
public static FuncProvider< string, string > Provider( DalamudPluginInterface pi, Func< string, string > func )
|
||||
=> new(pi, Label, func);
|
||||
|
||||
public static FuncSubscriber< string, string > Subscriber( DalamudPluginInterface pi )
|
||||
=> new(pi, Label);
|
||||
}
|
||||
|
||||
public static class ResolvePlayerPath
|
||||
{
|
||||
public const string Label = $"Penumbra.{nameof( ResolvePlayerPath )}";
|
||||
|
||||
public static FuncProvider< string, string > Provider( DalamudPluginInterface pi, Func< string, string > func )
|
||||
=> new(pi, Label, func);
|
||||
|
||||
public static FuncSubscriber< string, string > Subscriber( DalamudPluginInterface pi )
|
||||
=> new(pi, Label);
|
||||
}
|
||||
|
||||
public static class ResolveCharacterPath
|
||||
{
|
||||
public const string Label = $"Penumbra.{nameof( ResolveCharacterPath )}";
|
||||
|
||||
public static FuncProvider< string, string, string > Provider( DalamudPluginInterface pi, Func< string, string, string > func )
|
||||
=> new(pi, Label, func);
|
||||
|
||||
public static FuncSubscriber< string, string, string > Subscriber( DalamudPluginInterface pi )
|
||||
=> new(pi, Label);
|
||||
}
|
||||
|
||||
public static class ReverseResolvePath
|
||||
{
|
||||
public const string Label = $"Penumbra.{nameof( ReverseResolvePath )}";
|
||||
|
||||
public static FuncProvider< string, string, string[] > Provider( DalamudPluginInterface pi, Func< string, string, string[] > func )
|
||||
=> new(pi, Label, func);
|
||||
|
||||
public static FuncSubscriber< string, string, string[] > Subscriber( DalamudPluginInterface pi )
|
||||
=> new(pi, Label);
|
||||
}
|
||||
|
||||
public static class ReverseResolvePlayerPath
|
||||
{
|
||||
public const string Label = $"Penumbra.{nameof( ReverseResolvePlayerPath )}";
|
||||
|
||||
public static FuncProvider< string, string[] > Provider( DalamudPluginInterface pi, Func< string, string[] > func )
|
||||
=> new(pi, Label, func);
|
||||
|
||||
public static FuncSubscriber< string, string[] > Subscriber( DalamudPluginInterface pi )
|
||||
=> new(pi, Label);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue