public void SendAnchorToGame(PosRotAnchor pra) { var offset = PointerSolver.FollowMainPointer(CurrentConnection, OffsetHelper.PlayerCoordJumps, beriBase); CurrentConnection.WriteBytes(pra.Anchor1, offset, NHSE.Injection.RWMethod.Absolute); CurrentConnection.WriteBytes(pra.Anchor2, offset + 0x3A, NHSE.Injection.RWMethod.Absolute); }
public void DeleteAnchor(PosRotAnchor pra) { UI_Popup.CurrentInstance.CreatePopupChoice($"Really delete anchor {pra.Name}? This action cannot be reversed.", "No", () => { }, null, "Yes, delete it", () => { teleports.Remove(pra); saveAnchors(); loadAnchors(); }); }