Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher Class Reference

Detailed Description

PatchTicket.sharedData map:

  • [0]: (int) error code.
    • 0 - undefined assembly
    • 1 - undefined script
    • 2 - script not found
  • [1]: (int) destination source id. 0: catalog, 1: manual
Inheritance diagram for Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher:
Collaboration diagram for Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher:

Public Member Functions

override bool IsCanBePatched (PipelineMap node, PatchTicket ticket)
 Checking tis the failed to restore type has defined transfer order. More...
 
override void OnListGUI (PipelineMap node, PatchTicket ticket)
 Custom GUI in patch orders list item. More...
 
override 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...
 
override void OnGUI (PipelineMap node, PatchTicket ticket)
 Handler for inspector's UI drawing. More...
 
State Patch (PipelineMap node, PatchTicket ticket)
 Starts patching sequence. More...
 

Protected Member Functions

override void DrawInstanceProperties (PipelineMap node, PatchTicket ticket)
 
override State OnPatch (PipelineMap node, PatchTicket ticket)
 Handler that should path the node marked by this patch logic as invalid. More...
 
virtual void DrawTransferCatalog (PipelineMap node, PatchTicket ticket)
 
virtual void OnPrePatch (PipelineMap node, PatchTicket ticket)
 Handler that will be called before patching. Use it to make preparation, backups, etc. 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...
 

Properties

int selectedInspectorTabIdx = 0 [get, set]
 
GUIContent[] inspectorTabsNames [get]
 
GUIContent[] destinationModeNames [get]
 

Member Function Documentation

◆ DrawInstanceProperties()

override void Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher.DrawInstanceProperties ( PipelineMap  node,
PatchTicket  ticket 
)
protectedvirtual

◆ IsCanBePatched()

override bool Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher.IsCanBePatched ( PipelineMap  __,
PatchTicket  ticket 
)
virtual

Checking tis the failed to restore type has defined transfer order.

Parameters
__Discarded.
ticketPathcher data.
Returns
True in case if TypesTransferCatalog contains order and the type defined at the order can be restored with currently loaded assemblies.

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

◆ OnGUI()

override void Doloro.AI.DAIDebugger.PatchingTool.AssemblyPatchingTool.AssemblyPatcher.OnGUI ( PipelineMap  node,
PatchTicket  ticket 
)
virtualinherited

Handler for inspector's UI drawing.

Parameters
nodeSource to patch.
ticketOrder generated by the patcher.

Reimplemented from Doloro.AI.DAIDebugger.PatchingTool.APatchLogic.

◆ OnListGUI()

override void Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher.OnListGUI ( PipelineMap  node,
PatchTicket  ticket 
)
virtual

Custom GUI in patch orders list item.

Parameters
nodeSource node.
ticketPatcher data.

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

◆ OnPatch()

override State Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher.OnPatch ( PipelineMap  node,
PatchTicket  ticket 
)
protectedvirtual

Handler that should path the node marked by this patch logic as invalid.

Parameters
nodeSource to patch.
ticketOrder generated by the patcher.

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

◆ OnPostPatch()

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

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 
)
protectedvirtualinherited

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

Parameters
nodeSource to patch.
ticketOrder generated by the patcher.

◆ OnValid()

override bool Doloro.AI.DAIDebugger.PatchingTool.ScriptsPatchingTool.ScriptsPatcher.OnValid ( PipelineMap  node,
System.Action  onInvalid 
)
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.

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

◆ Patch()

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

Starts patching sequence.

Parameters
node
ticket
Returns

Property Documentation

◆ destinationModeNames

GUIContent [] Doloro.AI.DAIDebugger.PatchingTool.AssemblyPatchingTool.AssemblyPatcher.destinationModeNames
getinherited
Initial value:
= new GUIContent[] {
new LocalizedGUIContent("Catalog entry", "Destination value will be connected to the Catalog."),
new LocalizedGUIContent("Manual value", "The patch will use manual destination type signature.")}

◆ inspectorTabsNames

GUIContent [] Doloro.AI.DAIDebugger.PatchingTool.AssemblyPatchingTool.AssemblyPatcher.inspectorTabsNames
getinherited
Initial value:
= new GUIContent[] {
new LocalizedGUIContent("Properties", "Properties of the current patch order."),
new LocalizedGUIContent("Catalog", "Transfer catalog for assembly types.")}

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