Skip to content

Commit

Permalink
Add OnVendingMachineRefill hook
Browse files Browse the repository at this point in the history
- object OnVendingMachineRefill(NPCVendingMachine vending)
  • Loading branch information
jbrazio authored and lukespragg committed Aug 6, 2021
1 parent 7767f51 commit 46f7ce2
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion resources/Rust.opj
Original file line number Diff line number Diff line change
Expand Up @@ -7391,7 +7391,7 @@
"ArgumentBehavior": 4,
"ArgumentString": "a0, this",
"HookTypeName": "Simple",
"Name": "CanAdministerVending [npc]",
"Name": "CanAdministerVending [NPC]",
"HookName": "CanAdministerVending",
"AssemblyName": "Assembly-CSharp.dll",
"TypeName": "NPCVendingMachine",
Expand Down Expand Up @@ -16921,6 +16921,30 @@
"BaseHookName": null,
"HookCategory": "Resource"
}
},
{
"Type": "Simple",
"Hook": {
"InjectionIndex": 25,
"ReturnBehavior": 1,
"ArgumentBehavior": 1,
"ArgumentString": null,
"HookTypeName": "Simple",
"Name": "OnVendingMachineRefill [NPC]",
"HookName": "OnVendingMachineRefill",
"AssemblyName": "Assembly-CSharp.dll",
"TypeName": "NPCVendingMachine",
"Flagged": false,
"Signature": {
"Exposure": 2,
"Name": "Refill",
"ReturnType": "System.Void",
"Parameters": []
},
"MSILHash": "62FasNCKI0yu4MQwoJ8gaf7qrQr2l2SWXGcJxvZxIow=",
"BaseHookName": null,
"HookCategory": "Vending"
}
}
],
"Modifiers": [
Expand Down Expand Up @@ -38914,6 +38938,25 @@
"Parameters": []
},
"MSILHash": ""
},
{
"Name": "NPCVendingMachine::refillTimes",
"AssemblyName": "Assembly-CSharp.dll",
"TypeName": "NPCVendingMachine",
"Type": 0,
"TargetExposure": [
2
],
"Flagged": false,
"Signature": {
"Exposure": [
0
],
"Name": "refillTimes",
"FullTypeName": "System.Single[] NPCVendingMachine::refillTimes",
"Parameters": []
},
"MSILHash": ""
}
],
"Fields": [
Expand Down

0 comments on commit 46f7ce2

Please sign in to comment.