mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Update PCP Service.
This commit is contained in:
parent
4d4e4669dd
commit
487d3b9399
3 changed files with 5 additions and 5 deletions
|
|
@ -51,7 +51,7 @@ public class PenumbraService : IDisposable
|
|||
private readonly EventSubscriber<nint, Guid, nint> _createdCharacterBase;
|
||||
private readonly EventSubscriber<ModSettingChange, Guid, string, bool> _modSettingChanged;
|
||||
private readonly EventSubscriber<JObject, string, Guid> _pcpParsed;
|
||||
private readonly EventSubscriber<JObject, ushort> _pcpCreated;
|
||||
private readonly EventSubscriber<JObject, ushort, string> _pcpCreated;
|
||||
|
||||
private global::Penumbra.Api.IpcSubscribers.GetCollectionsByIdentifier? _collectionByIdentifier;
|
||||
private global::Penumbra.Api.IpcSubscribers.GetCollections? _collections;
|
||||
|
|
@ -140,7 +140,7 @@ public class PenumbraService : IDisposable
|
|||
remove => _modSettingChanged.Event -= value;
|
||||
}
|
||||
|
||||
public event Action<JObject, ushort> PcpCreated
|
||||
public event Action<JObject, ushort, string> PcpCreated
|
||||
{
|
||||
add => _pcpCreated.Event += value;
|
||||
remove => _pcpCreated.Event -= value;
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ public class PcpService : IRequiredService
|
|||
}
|
||||
}
|
||||
|
||||
private void OnPcpCreation(JObject jObj, ushort index)
|
||||
private void OnPcpCreation(JObject jObj, ushort index, string path)
|
||||
{
|
||||
Glamourer.Log.Debug("[PCPService] Adding Glamourer data to PCP file.");
|
||||
var actorIdentifier = _objects.Actors.FromJson(jObj["Actor"] as JObject);
|
||||
|
|
@ -110,7 +110,7 @@ public class PcpService : IRequiredService
|
|||
}
|
||||
|
||||
var design = _designConverter.Convert(state, ApplicationRules.All);
|
||||
jObj["Glamourer"] = new JObject()
|
||||
jObj["Glamourer"] = new JObject
|
||||
{
|
||||
["Version"] = 1,
|
||||
["Design"] = design.JsonSerialize(),
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 0a970295b2398683b1e49c46fd613541e2486210
|
||||
Subproject commit 297941bc22300f4a8368f4d0177f62943eb69727
|
||||
Loading…
Add table
Add a link
Reference in a new issue