OnDeepSeaClosed
OxideCarbonNavalvoid OnDeepSeaClosed(DeepSeaManager local1)Works — the game method in this build is the one the hook was written for.
Parameters
- local1
- DeepSeaManager
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnDeepSeaClosed(DeepSeaManager local1)
{
Puts("OnDeepSeaClosed");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
bool DeepSeaManager.<CloseDeepSeaAsync>d__78.MoveNext()
Passes: DeepSeaManager local1
WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (l1)Assembly-CSharp.dll
Where it is called (this branch's game code)
// …
deepSeaManager.ResetTimeToNextOpening();
deepSeaManager.SetFlagLocal(Flags.Busy, b: false);
Log("All cleared!");
if (!DeepSea.enabled)
{
deepSeaManager.Kill();
}
Analytics.Azure.OnDeepSeaToggled(toggle: false);
Interface.CallHook("OnDeepSeaClosed", deepSeaManager);
return false;
}Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.