OnDeepSeaOpened
OxideCarbonNavalvoid OnDeepSeaOpened(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 OnDeepSeaOpened(DeepSeaManager local1)
{
Puts("OnDeepSeaOpened");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
bool DeepSeaManager.<OpenDeepSeaAsync>d__76.MoveNext()
Passes: DeepSeaManager local1
WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (l1)Assembly-CSharp.dll
Where it is called (this branch's game code)
// …
flagsUpdateScope.Set(Flags.Open, b: true);
}
deepSeaManager.SetFlagLocal(Flags.Busy, b: false);
deepSeaManager.ResetWipeSteps();
deepSeaManager.DoOpenNotification();
PlanterBoxStatic.OnDeepSeaSpawned();
Analytics.Azure.OnDeepSeaToggled(toggle: true);
Log("Done!");
Interface.CallHook("OnDeepSeaOpened", 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.