OnPlayerBoatEditStarted
OxideCarbonNavalvoid OnPlayerBoatEditStarted(PlayerBoat local1, BoatBuildingStation boatBuildingStation)Works — the game method in this build is the one the hook was written for.
Parameters
- local1
- PlayerBoat
- boatBuildingStation
- BoatBuildingStation
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnPlayerBoatEditStarted(PlayerBoat local1, BoatBuildingStation boatBuildingStation)
{
Puts("OnPlayerBoatEditStarted");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
void BoatBuildingStation.ConvertPlayerBoatToConstruction()
Passes: PlayerBoat local1, BoatBuildingStation boatBuildingStation
WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (l1, this)Assembly-CSharp.dll
Where it is called (this branch's game code)
// …
finally
{
if (autoSyncTransforms)
{
UnityEngine.Physics.SyncTransforms();
}
UnityEngine.Physics.autoSyncTransforms = autoSyncTransforms;
}
Interface.CallHook("OnPlayerBoatEditStarted", playerBoat, this);
playerBoat.Kill();
Facepunch.Pool.FreeUnmanaged(ref obj);
}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.