Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.DAIDebugger.PatchingTool.APatchLogic Class Referenceabstract

Detailed Description

The base class for any integrable patchers. Will be called by the Patcher instance during validation pass for each node in a project.

Inheritance diagram for Doloro.AI.DAIDebugger.PatchingTool.APatchLogic:

Public Member Functions

abstract bool IsCanBePatched (PipelineMap node, PatchTicket ticket)
 Handler that should consider shared data and patcher settings and decide is the patcher can be called. Patch request will be denied in case if the handler returns false. More...
 
abstract bool OnValid (PipelineMap node, System.Action onInvalid)
 Handler calling when some behavior node processing by the debugger. Must conclude is the node passing validation filter. More...
 
State Patch (PipelineMap node, PatchTicket ticket)
 Starts patching sequence. More...
 
virtual void OnGUI (PipelineMap node, PatchTicket ticket)
 Handler for inspector's UI drawing. More...
 
virtual void OnListGUI (PipelineMap node, PatchTicket ticket)
 Custom GUI in patch orders list item. More...
 

Protected Member Functions

virtual void OnPrePatch (PipelineMap node, PatchTicket ticket)
 Handler that will be called before patching. Use it to make preparation, backups, etc. More...
 
abstract State OnPatch (PipelineMap node, PatchTicket ticket)
 Handler that should path the node marked by this patch logic as invalid. More...
 
virtual void OnPostPatch (PipelineMap node, PatchTicket ticket)
 Handler that will be called after patching. Use it to revert settings or restore damaged data. More...
 

Member Function Documentation

◆ IsCanBePatched()

abstract bool Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.IsCanBePatched ( PipelineMap  node,
PatchTicket  ticket 
)
pure virtual

Handler that should consider shared data and patcher settings and decide is the patcher can be called. Patch request will be denied in case if the handler returns false.

Parameters
nodeSource to patch.
ticketOrder generated by the patcher.
Returns
Conclusion is the patch could be processed.

Implemented in Doloro.AI.DAIDebugger.PatchingTool.AssemblyPatchingTool.AssemblyPatcher, Doloro.AI.DAIDebugger.PatchingTool.AbsentPropertyPatcher, Doloro.AI.DAIDebugger.PatchingTool.ObsoletePropertyPatcher, Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher, and Doloro.AI.DAIDebugger.PatchingTool.VariablesVersionPatcher.

◆ OnGUI()

virtual void Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.OnGUI ( PipelineMap  node,
PatchTicket  ticket 
)
virtual

Handler for inspector's UI drawing.

Parameters
nodeSource to patch.
ticketOrder generated by the patcher.

Reimplemented in Doloro.AI.DAIDebugger.PatchingTool.AssemblyPatchingTool.AssemblyPatcher.

◆ OnListGUI()

virtual void Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.OnListGUI ( PipelineMap  node,
PatchTicket  ticket 
)
virtual

Custom GUI in patch orders list item.

Parameters
nodeSource node.
ticketPatcher data.

Reimplemented in Doloro.AI.DAIDebugger.PatchingTool.AssemblyPatchingTool.AssemblyPatcher, and Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher.

◆ OnPatch()

abstract State Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.OnPatch ( PipelineMap  node,
PatchTicket  ticket 
)
protectedpure virtual

◆ OnPostPatch()

virtual void Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.OnPostPatch ( PipelineMap  node,
PatchTicket  ticket 
)
protectedvirtual

Handler that will be called after patching. Use it to revert settings or restore damaged data.

Parameters
nodeSource to patch.
ticketOrder generated by the patcher.

◆ OnPrePatch()

virtual void Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.OnPrePatch ( PipelineMap  node,
PatchTicket  ticket 
)
protectedvirtual

Handler that will be called before patching. Use it to make preparation, backups, etc.

Parameters
nodeSource to patch.
ticketOrder generated by the patcher.

◆ OnValid()

abstract bool Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.OnValid ( PipelineMap  node,
System.Action  onInvalid 
)
pure virtual

Handler calling when some behavior node processing by the debugger. Must conclude is the node passing validation filter.

Parameters
nodeTarget node for validation.
onInvalidHandler that calling during processing for each invalid parameter.
Returns
Is the node valid by the handler's opinion.

Implemented in Doloro.AI.DAIDebugger.PatchingTool.AbsentPropertyPatcher, Doloro.AI.DAIDebugger.PatchingTool.AssemblyPatchingTool.AssemblyPatcher, Doloro.AI.DAIDebugger.PatchingTool.ObsoletePropertyPatcher, Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher, and Doloro.AI.DAIDebugger.PatchingTool.VariablesVersionPatcher.

◆ Patch()

State Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.Patch ( PipelineMap  node,
PatchTicket  ticket 
)

Starts patching sequence.

Parameters
node
ticket
Returns

The documentation for this class was generated from the following file: